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.
This commit is contained in:
Ben Noordhuis 2024-09-28 22:26:18 +02:00 committed by GitHub
parent 7db24cc0da
commit 6d63b36c0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1976,7 +1976,7 @@ void run_test_dir_list(namelist_t *lp, int start_index, int stop_index)
} else { } else {
int msec = 0; int msec = 0;
run_test(p, test_index, &msec); 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); fprintf(stderr, "%s (%d ms)\n", p, msec);
show_progress(FALSE); show_progress(FALSE);
} }