Squish: Fix verification in tst_rename_file

This doesn't change anything until we replace the used project.
main.cpp or utility.cpp may get the tempFiletype "Headers" and
then the test will crash because the file can't be opened.
In addition, only files with filetype "Headers" are included in
other files, so verifying including of other files is
pointless.

Change-Id: I30b20269a800eca5ef51de3af209e674da5189bd
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
Robert Loehning
2015-05-29 11:54:25 +02:00
parent a8cdf035ac
commit c7b7fde2bf

View File

@@ -61,7 +61,7 @@ def main():
previous, filename)
# QTCREATORBUG-13176 does update the navigator async
progressBarWait()
if tempFiletype == "Headers": # QTCREATORBUG-13204
if filetype == "Headers": # QTCREATORBUG-13204
verifyRenamedIncludes(templateDir, "main.cpp", previous, filename)
verifyRenamedIncludes(templateDir, "utility.cpp", previous, filename)
previous = filename