public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: dwz@sourceware.org, jakub@redhat.com
Subject: [committed] Don't change directory in dwz-tests.exp
Date: Tue, 01 Jan 2019 00:00:00 -0000	[thread overview]
Message-ID: <20190306132250.GA10257@delia> (raw)

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
 }

                 reply	other threads:[~2019-03-06 13:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190306132250.GA10257@delia \
    --to=tdevries@suse.de \
    --cc=dwz@sourceware.org \
    --cc=jakub@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).