Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 28, 2024

Conversation

bnoordhuis
Copy link
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
52 checks passed
@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
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants