diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-09-04 01:36:13 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-09-04 01:36:13 +0000 |
commit | a134f6eca8102400f41ae0a1e2e9ab3236b1649b (patch) | |
tree | 614ed773d8a00bc8d6c1c4a7c296877adfd878a2 /infrastructure | |
parent | 426a506afd1ffb3bd67e61b4693ee9bb968097a1 (diff) |
Backport Timers::Cleanup that's safe to use in test cleanup.
Allows it not to throw an exception if timers weren't initialised when
cleanup was requested. Normally we want an exception thrown, but not while
we're cleaning up a test that might have failed with timers uninitialised.
More timers fixes after cleanup no-exception option.
Merged back changes from the test refactor branch to reduce diffs.
Diffstat (limited to 'infrastructure')
-rw-r--r-- | infrastructure/buildenv-testmain-template.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/infrastructure/buildenv-testmain-template.cpp b/infrastructure/buildenv-testmain-template.cpp index 71b6a60d..5baff684 100644 --- a/infrastructure/buildenv-testmain-template.cpp +++ b/infrastructure/buildenv-testmain-template.cpp @@ -407,7 +407,7 @@ int main(int argc, char * const * argv) Timers::Init(); int returncode = test(argc, (const char **)argv); - Timers::Cleanup(); + Timers::Cleanup(false); fflush(stdout); fflush(stderr); |