[Interest] Non-zero exit code from QSKIP()-ed tests

Matt.Bolger at csiro.au Matt.Bolger at csiro.au
Thu Jun 5 01:11:45 CEST 2014


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: interest-bounces+matt.bolger=csiro.au at qt-project.org [mailto:interest-bounces+matt.bolger=csiro.au at qt-project.org] On Behalf Of Thiago Macieira
Sent: Wednesday, 4 June 2014 5:32 PM
To: interest at qt-project.org
Subject: Re: [Interest] Non-zero exit code from QSKIP()-ed tests

Em qua 04 jun 2014, às 06:38:24, Matt.Bolger at csiro.au 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
Interest at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list