public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
* [committed] Don't change directory in dwz-tests.exp
@ 2019-01-01  0:00 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2019-01-01  0:00 UTC (permalink / raw)
  To: dwz, jakub

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
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-06 13:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-01  0:00 [committed] Don't change directory in dwz-tests.exp Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).