This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
[PATCH] Remove previous test files before running the next round
- From: Ulf Hermann <ulf dot hermann at qt dot io>
- To: <elfutils-devel at sourceware dot org>
- Date: Thu, 4 May 2017 18:04:56 +0200
- Subject: [PATCH] Remove previous test files before running the next round
- Authentication-results: sourceware.org; auth=none
- Authentication-results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=qt.io;
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qtcompany.onmicrosoft.com; s=selector1-qt-io; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=pAZsWCYX2vZY8uaRD0xCPoJlQD09JF3DQWzDGjMS3T4=; b=FpemtmnN+Ij/K0/AnYz2zp7+5kUWBBSYJcKn9+lWYNwSW0XrszMw8WQ7dDC2UL7/bXkPJ4g3hRJdpIWxVA3GDa3JwYpxsvPcdpabf0kG1rMaI2dkmHRKKkj01CumrZL6bVMLnmTBKuYmwkdsLHqG8P8KHTAJG3qZMxOFZRxGGNA=
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
strip explicitly creates the new files. This will not work on windows if
the files already exist.
Signed-off-by: Ulf Hermann <ulf.hermann@qt.io>
---
tests/ChangeLog | 5 +++++
tests/run-strip-reloc.sh | 2 ++
2 files changed, 7 insertions(+)
diff --git a/tests/ChangeLog b/tests/ChangeLog
index f43aeba..1a77c02 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -6,6 +6,11 @@
2017-05-04 Ulf Hermann <ulf.hermann@qt.io>
+ * run-strip-reloc.sh: Remove previous testfiles before running the
+ next test.
+
+2017-05-04 Ulf Hermann <ulf.hermann@qt.io>
+
* elfstrmerge.c: Use 07777 instead of ALLPERMS.
2017-05-04 Ulf Hermann <ulf.hermann@qt.io>
diff --git a/tests/run-strip-reloc.sh b/tests/run-strip-reloc.sh
index 50dddbf..f44991d 100755
--- a/tests/run-strip-reloc.sh
+++ b/tests/run-strip-reloc.sh
@@ -32,6 +32,8 @@ runtest() {
outfile2=out.stripped2
debugfile2=out.debug2
+ rm -f $outfile1 $debugfile1 $outfile2 $debugfile2
+
testrun ${abs_top_builddir}/src/strip -o $outfile1 -f $debugfile1 $infile ||
{ echo "*** failure strip $infile"; status=1; }
--
2.1.4