diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2011-05-19 11:42:31 +1000 |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2011-05-19 13:56:28 +1000 |
commit | b0a5a988900b777cb08012408eb108512a3e873b (patch) | |
tree | 219f68f99cbfbcf67201a8bd8be2af7fd7d0d477 /mkspecs/features | |
parent | c2eb7bb0801bfeaf2efed120b9f9bdf09d4d1f20 (diff) |
tests: allow unstable tests to be marked with CONFIG+=insignificant_test
Marking a test with CONFIG+=insignificant_test will cause the exit code
of the test to be discarded during `make check'. This is intended to be
used for tests which are valuable to run, but are known to be unstable
and are not feasible to immediately fix.
Reviewed-by: Jason McDonald
Change-Id: I50a712c33c2ebb0af39f1ea0bf2adef7f0936425
Diffstat (limited to 'mkspecs/features')
-rw-r--r-- | mkspecs/features/testcase.prf | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mkspecs/features/testcase.prf b/mkspecs/features/testcase.prf index 7a7c9e305a..eb0aa9fb85 100644 --- a/mkspecs/features/testcase.prf +++ b/mkspecs/features/testcase.prf @@ -38,6 +38,10 @@ embedded: check.commands += -qws # Allow for custom arguments to tests check.commands += $(TESTARGS) + +# If the test is marked as insignificant, discard the exit code +insignificant_test:check.commands = -$${check.commands} + QMAKE_EXTRA_TARGETS *= check !debug_and_release|build_pass { |