aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/tst_blackbox.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2014-05-19 14:37:23 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2014-05-19 15:26:57 +0200
commit79758d0962c7465833bee6fb172f72b1cd1a3611 (patch)
tree4578480ab0dbd12208348f65dcba72b0e63b74ba /tests/auto/blackbox/tst_blackbox.cpp
parentc7a7e03046309a6be11689b62518577bf8c69a61 (diff)
extend TestBlackBox::fileDependencies
narf.cpp includes awesome.h awesome.h includes magnificent.h awesome.h and magnificent.h are not listed in the project. Changing magnificent.h must trigger a rebuild of narf.cpp. Task-number: QBS-566 Change-Id: Ib2df45ac550951b550ce4ba0e7519268d9123eda Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'tests/auto/blackbox/tst_blackbox.cpp')
-rw-r--r--tests/auto/blackbox/tst_blackbox.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/blackbox/tst_blackbox.cpp b/tests/auto/blackbox/tst_blackbox.cpp
index 3ca70b7bd..51ac5121b 100644
--- a/tests/auto/blackbox/tst_blackbox.cpp
+++ b/tests/auto/blackbox/tst_blackbox.cpp
@@ -1555,6 +1555,14 @@ void TestBlackbox::fileDependencies()
QCOMPARE(runQbs(), 0);
QVERIFY(m_qbsStdout.contains("compiling narf.cpp"));
QVERIFY(!m_qbsStdout.contains("compiling zort.cpp"));
+
+ // Incremental build with changed 2nd level file dependency.
+ waitForNewTimestamp();
+ touch("awesomelib/magnificent.h");
+ QCOMPARE(runQbs(), 0);
+ QEXPECT_FAIL("", "QBS-566", Abort);
+ QVERIFY(m_qbsStdout.contains("compiling narf.cpp"));
+ QVERIFY(!m_qbsStdout.contains("compiling zort.cpp"));
}
void TestBlackbox::jsExtensionsFile()