One more thing to ask.
I have two classes for testing, and how to run all tests from both classes the same time if I can't add
QTEST_MAIN(Test1)
QTEST_MAIN(Test1)
To copy to clipboard, switch view to plain text mode
and
QTEST_MAIN(Test2)
QTEST_MAIN(Test2)
To copy to clipboard, switch view to plain text mode
the same time ?
If I will enable it in both classes a compiler complains about the main method
test1.cpp:57: error: multiple definition of `main'
test2.cpp:24: error: first defined here
:-1: error: collect2: ld returned 1 exit status
test1.cpp:57: error: multiple definition of `main'
test2.cpp:24: error: first defined here
:-1: error: collect2: ld returned 1 exit status
To copy to clipboard, switch view to plain text mode
Thanks
Bookmarks