diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2017-10-23 10:49:35 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2017-10-24 13:33:36 +0000 |
commit | 26b80fd95660c8a8c920bb32991a9d896ed25beb (patch) | |
tree | 1b77b5ecc286ea67e561d53f2c3f652ff3b23ee1 /tests/auto/blackbox/tst_blackboxqt.cpp | |
parent | 0ce5c7dc726a638cd5a325aa2e24d5c1fe20cba6 (diff) |
Make it possible to mark non-generated C++ header files as "unmocable"
Let the moc rule check its inputs for the "unmocable" file tag and
ignore such artifacts. The already existing excludeAuxiliaryInputs
assignment only prevents connections to rules that produce unmocable
artifacts.
Change-Id: I2f51c3d86e9127a62c592e28182c16f456340ab8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests/auto/blackbox/tst_blackboxqt.cpp')
-rw-r--r-- | tests/auto/blackbox/tst_blackboxqt.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/blackbox/tst_blackboxqt.cpp b/tests/auto/blackbox/tst_blackboxqt.cpp index 501991a03..b6ad54909 100644 --- a/tests/auto/blackbox/tst_blackboxqt.cpp +++ b/tests/auto/blackbox/tst_blackboxqt.cpp @@ -360,4 +360,11 @@ void TestBlackboxQt::track_qrc() QVERIFY(dt < QFileInfo(fileName).lastModified()); } +void TestBlackboxQt::unmocable() +{ + QDir::setCurrent(testDataDir + "/unmocable"); + QCOMPARE(runQbs(), 0); + QVERIFY(!m_qbsStderr.contains("No relevant classes found. No output generated.")); +} + QTEST_MAIN(TestBlackboxQt) |