Thanks Thiago, although I'm actually not asking about the merits of whether skipping something should be considered a complete succuss or something else. My question is whether there's any way in code to query the number of tests marked as skipped by the test system.
Thanks Matt -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Thiago Macieira Sent: Wednesday, 4 June 2014 5:32 PM To: [email protected] Subject: Re: [Interest] Non-zero exit code from QSKIP()-ed tests Em qua 04 jun 2014, às 06:38:24, [email protected] escreveu: > Is there any way to detected skipped tests and return a non-zero exit code? > For example rather than using QTEST_MAIN maybe it's possible to call > QTest::qExec yourself and then something like QTest::numSkipped() to > then return your own exit code. If you have only passed and skipped tests, the testcase succeeded. There's nothing to report. Therefore, having a non-zero exit code would be wrong. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center _______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest _______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
