summaryrefslogtreecommitdiffstats
path: root/mkspecs/features
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2011-05-19 01:42:31 (GMT)
committerSergio Ahumada <sergio.ahumada@nokia.com>2011-11-15 08:27:19 (GMT)
commit9be94925138d11f9a2f191f9676665eb8f3e6d3a (patch)
tree7fd2eb458afe194839b499b9aa3d61aeef66daa0 /mkspecs/features
parent80cd74aa26b3b1968502b155b8645b37aa105c19 (diff)
downloadQt-9be94925138d11f9a2f191f9676665eb8f3e6d3a.zip
Qt-9be94925138d11f9a2f191f9676665eb8f3e6d3a.tar.gz
Qt-9be94925138d11f9a2f191f9676665eb8f3e6d3a.tar.bz2
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 (cherry picked from commit b0a5a988900b777cb08012408eb108512a3e873b)
Diffstat (limited to 'mkspecs/features')
-rw-r--r--mkspecs/features/testcase.prf4
1 files changed, 4 insertions, 0 deletions
diff --git a/mkspecs/features/testcase.prf b/mkspecs/features/testcase.prf
index 7a7c9e3..eb0aa9f 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 {