[Interest] cpputest with QTest output issue on embedded target console
Ramakanth Kesireddy
rama.kesi at gmail.com
Sun Dec 8 09:35:04 CET 2019
Thanks it works.
However, it gives generic failure rather than specific failure in the test
when used with Qt.
unknown file:0: error: Failure in TEST(
NOTE: Assertion happened without being in a test run (perhaps in main?),
Something is very wrong. Check this assertion and fix)
Something is very wrong. Check this assertion and fix:0: error:
Deallocating non-allocated memory
allocated at file: <unknown> line: 0 size: 0 type: unknown
deallocated at file: <unknown> line: 0 type: delete
Main to run qt unit tests looks like below:
int main(int argc, char *argv[])
{
qputenv("QT_LOGGING_TO_CONSOLE","1");
QApplication app( argc, argv );
CommandLineTestRunner::RunAllTests(argc, argv);
return 0;
}
Best Regards,
Ramakanth
On Fri, 6 Dec, 2019, 15:52 Christian Kandeler, <Christian.Kandeler at qt.io>
wrote:
> On Fri, 6 Dec 2019 08:23:20 +0530
> Ramakanth Kesireddy <rama.kesi at gmail.com> wrote:
>
> > When unit test binary(using cpputest to run the testcases + QTest for the
> > specific Qt functionality)is executed on embedded target(linux), it
> doesnot
> > shows any test summary/results with respect to number of testcases run on
> > console.
> >
> > There is no issue when it is run on Ubuntu linux.
> >
> > Whether Qt redirects the standard output or any environment variable to
> see
> > the output on console or any other reason?
>
> The output might go to some syslog. Try setting QT_LOGGING_TO_CONSOLE=1.
>
>
> Christian
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20191208/137d3e76/attachment.html>
More information about the Interest
mailing list