summaryrefslogtreecommitdiff
path: root/Tests/LibJS
diff options
context:
space:
mode:
authordavidot <davidot@serenityos.org>2022-09-11 10:15:05 +0200
committerLinus Groh <mail@linusgroh.de>2022-09-11 20:25:51 +0100
commite3fb5d227a8b4f5507c83d9b32d8f482a7427475 (patch)
tree45782c786359111ee0f6225f35eaf3e4412ac43c /Tests/LibJS
parent3b020c6fb466a98e44e8c32759cc0e5a615b965e (diff)
downloadserenity-e3fb5d227a8b4f5507c83d9b32d8f482a7427475.zip
test262-runner: Rename variable stdin to standard_input
This was shadowing a name in LibC triggering warnings.
Diffstat (limited to 'Tests/LibJS')
-rw-r--r--Tests/LibJS/test262-runner.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/LibJS/test262-runner.cpp b/Tests/LibJS/test262-runner.cpp
index 1329d94c12..e1135c14da 100644
--- a/Tests/LibJS/test262-runner.cpp
+++ b/Tests/LibJS/test262-runner.cpp
@@ -608,11 +608,11 @@ int main(int argc, char** argv)
#define DISARM_TIMER() \
alarm(0)
- auto stdin = Core::File::standard_input();
+ auto standard_input = Core::File::standard_input();
size_t count = 0;
- while (!stdin->eof()) {
- auto path = stdin->read_line();
+ while (!standard_input->eof()) {
+ auto path = standard_input->read_line();
if (path.is_empty()) {
continue;
}