Skip to content

Add -vv verboser mode switch to run-test262#561

Merged
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:verboser
Sep 28, 2024
Merged

Add -vv verboser mode switch to run-test262#561
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:verboser

Conversation

@bnoordhuis
Copy link
Copy Markdown
Contributor

Prints the test name and running time in milliseconds. Supersedes -T <ms> because that switch prints the same info, only for slow tests.

Prints the test name and running time in milliseconds. Supersedes
`-T <ms>` because that switch prints the same info, only for slow
tests.
@bnoordhuis bnoordhuis merged commit 7db24cc into quickjs-ng:master Sep 28, 2024
@bnoordhuis bnoordhuis deleted the verboser branch September 28, 2024 12:37
}
int msec = 0;
run_test(p, test_index, &msec);
if (verbose > 1 || (msec > 0 && msec >= slow_test_threshold))
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I introduced a small bug here, it should have been written as:

if (verbose > 1 || (slow_test_threshold && msec >= slow_test_threshold))

...because now it prints a line for every test that takes >= 1 ms to run. I'll fix that shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants