From 6d63b36c0af7c0b0e013fa70c251e4ee123917d2 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 28 Sep 2024 22:26:18 +0200 Subject: [PATCH] Fix printing of slow tests with -T in run-test262 (#563) It's currently printing them whenever a test takes one millisecond or longer to complete. Introduced in commit 7db24cc0da from earlier today, mea culpa. --- run-test262.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-test262.c b/run-test262.c index 5d7ef90..0d9bbf6 100644 --- a/run-test262.c +++ b/run-test262.c @@ -1976,7 +1976,7 @@ void run_test_dir_list(namelist_t *lp, int start_index, int stop_index) } else { int msec = 0; run_test(p, test_index, &msec); - if (verbose > 1 || (msec > 0 && msec >= slow_test_threshold)) + if (verbose > 1 || (slow_test_threshold && msec >= slow_test_threshold)) fprintf(stderr, "%s (%d ms)\n", p, msec); show_progress(FALSE); }