Skip to content

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
@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