move resetEnvironment() call to cleanup()

we want to call it even if the test fails

Change-Id: Ie8f3f9d2df5d52990d6b9f9a632e49826278175a
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
bb10
Oswald Buddenhagen 2012-02-23 15:39:23 +01:00 committed by Qt by Nokia
parent fd1d98b6af
commit 0957085f3d
1 changed files with 1 additions and 1 deletions

View File

@ -139,6 +139,7 @@ void tst_qmake::init()
void tst_qmake::cleanup()
{
test_compiler.resetArguments();
test_compiler.resetEnvironment();
test_compiler.clearCommandOutput();
}
@ -306,7 +307,6 @@ void tst_qmake::export_across_file_boundaries()
test_compiler.addToEnvironment("QMAKEFEATURES=.");
QString workDir = base_path + "/testdata/export_across_file_boundaries";
QVERIFY( test_compiler.qmake( workDir, "foo" ));
test_compiler.resetEnvironment();
}
void tst_qmake::include_dir()