move resetEnvironment() call to cleanup()
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Thu, 23 Feb 2012 14:39:23 +0000 (15:39 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 27 Feb 2012 19:52:45 +0000 (20:52 +0100)
we want to call it even if the test fails

Change-Id: Ie8f3f9d2df5d52990d6b9f9a632e49826278175a
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
tests/auto/tools/qmake/tst_qmake.cpp

index f6d88ff..4db09c6 100644 (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()