aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/tst_blackboxqt.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-08-11 16:30:34 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2017-08-14 09:10:59 +0000
commitfe79dab20ef733216aa9fa724acd4c12017ceb52 (patch)
tree75ec7b1bb750d19b71eb6ef3f2d244679ff89382 /tests/auto/blackbox/tst_blackboxqt.h
parent86a00a13dcf2b107b2aca66b565e0d6151f6bd07 (diff)
Fix edge case in change tracking
If we have a moc'able header file whose moc output is included by the cpp file, then it is an error not to list that header in the project file, because moc will not run on it and the included moc_cpp file won't be present, causing a compiler error. However, if the header was originally listed in the project file and removed from it after building, then the next attempt to build would still succeed, because the generated artifact would only be removed from disk at the end of the build process. Fix this by amending the code that checks for removed child artifacts to remove them from disk immediately, making sure a rebuild will not accidentally succeed. Change-Id: I4f69560cc899dbc61938acc1c697aa93407dc03c Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/auto/blackbox/tst_blackboxqt.h')
-rw-r--r--tests/auto/blackbox/tst_blackboxqt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/blackbox/tst_blackboxqt.h b/tests/auto/blackbox/tst_blackboxqt.h
index 5c1da8746..ff4f8fecf 100644
--- a/tests/auto/blackbox/tst_blackboxqt.h
+++ b/tests/auto/blackbox/tst_blackboxqt.h
@@ -56,6 +56,7 @@ private slots:
void qobjectInObjectiveCpp();
void qtKeywords();
void qtScxml();
+ void removeMocHeaderFromFileList();
void staticQtPluginLinking();
void trackAddMocInclude();
void track_qobject_change();