diff options
author | Joerg Bornemann <joerg.bornemann@digia.com> | 2014-07-17 17:33:03 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2014-07-18 11:15:58 +0200 |
commit | a451094914fe3df13d68e5c131014b82a71f7b50 (patch) | |
tree | 923aafe29add2567c343c5727399e55bf2da40b7 /tests/auto/blackbox/tst_blackbox.cpp | |
parent | 22c5846e6cf12787439ea70ec7ee25b71fd82573 (diff) |
fix up-to-date check wrt missing file dependencies
Missing file dependencies (e.g. header files that are not part of the
project) must trigger a rebuild their dependents.
Change-Id: I502e696d886c86a503e8950ae60254075f7e9415
Task-number: QBS-631
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.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/blackbox/tst_blackbox.cpp b/tests/auto/blackbox/tst_blackbox.cpp index 30cf99cd1..605582961 100644 --- a/tests/auto/blackbox/tst_blackbox.cpp +++ b/tests/auto/blackbox/tst_blackbox.cpp @@ -662,6 +662,17 @@ void TestBlackbox::rc() QCOMPARE(rcFileWasCompiled, HostOsInfo::isWindowsHost()); } +void TestBlackbox::removeFileDependency() +{ + QDir::setCurrent(testDataDir + "/removeFileDependency"); + QCOMPARE(runQbs(), 0); + QFile::remove("someheader.h"); + QbsRunParameters params; + params.expectFailure = true; + QVERIFY(runQbs(params) != 0); + QVERIFY(m_qbsStdout.contains("compiling main.cpp")); +} + void TestBlackbox::renameDependency() { QDir::setCurrent(testDataDir + "/renameDependency"); |