From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111825 invoked by alias); 6 Mar 2019 13:22:14 -0000 Mailing-List: contact dwz-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: dwz-owner@sourceware.org Received: (qmail 111813 invoked by uid 89); 6 Mar 2019 13:22:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.2 spammy=executing X-Spam-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: mx1.suse.de X-Virus-Scanned: by amavisd-new at test-mx.suse.de Date: Tue, 01 Jan 2019 00:00:00 -0000 From: Tom de Vries To: dwz@sourceware.org, jakub@redhat.com Subject: [committed] Don't change directory in dwz-tests.exp Message-ID: <20190306132250.GA10257@delia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-SW-Source: 2019-q1/txt/msg00073.txt.bz2 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 * 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 }