Skip to content
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

run tests with runtime debug flags #259

Open
lrvideckis opened this issue May 6, 2024 · 1 comment
Open

run tests with runtime debug flags #259

lrvideckis opened this issue May 6, 2024 · 1 comment

Comments

@lrvideckis
Copy link
Contributor

-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -D_GLIBCXX_SANITIZE_VECTOR -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all -fstack-protector

https://github.com/kth-competitive-programming/kactl/blob/main/doc/scripts/run-all.sh#L16

@simonlindholm
Copy link
Member

There's a trade-off here, where debug flags allow you fewer iterations of the stress tests in the same duration of time. I think generally if ASAN finds something it will find it early, not on the millionth iteration. Could be nice to have both options, with some flag passed in to each test that it could use to determine the number of iterations to run.

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

No branches or pull requests

2 participants