[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[committed] Don't change directory in dwz-tests.exp
Hi,
During execution of dwz-tests.exp, the current directory is changed.
When executing one more file dwz-tests-2.exp after dwz-tests.exp, the current
directory when entering dwz-tests-2.exp is the (changed) one at the exit of
dwz-tests.exp, while both .exp files expect to start with the same current
directory.
Fix this by resetting the current directory to its original value.
Committed as obvious.
Thanks,
- Tom
Don't change directory in dwz-tests.exp
2019-03-06 Tom de Vries <tdevries@suse.de>
* testsuite/dwz.tests/dwz-tests.exp: Cd back to $pwd after running
test script.
---
testsuite/dwz.tests/dwz-tests.exp | 1 +
1 file changed, 1 insertion(+)
diff --git a/testsuite/dwz.tests/dwz-tests.exp b/testsuite/dwz.tests/dwz-tests.exp
index 3f0c4d9..bea18fb 100644
--- a/testsuite/dwz.tests/dwz-tests.exp
+++ b/testsuite/dwz.tests/dwz-tests.exp
@@ -18,4 +18,5 @@ foreach test $tests {
pass "$test"
exec rm -Rf $dir
}
+ cd $pwd
}