[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] test-getcwd: don't leave behind a confdir3/ directory upon inter
From: |
Jim Meyering |
Subject: |
[PATCH] test-getcwd: don't leave behind a confdir3/ directory upon interrupt |
Date: |
Thu, 17 Nov 2011 12:32:56 +0100 |
I have noticed few failing tests recently that were due to
test-getcwd leaving behind its confdir3/ directory. Of course,
that happens only when something interrupts the test, but still.
An interrupted test should never make subsequent tests fail.
This fixes it.
>From 87df224773b6444e0ce9918b57715158d88a356e Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Thu, 17 Nov 2011 12:27:06 +0100
Subject: [PATCH] test-getcwd: don't leave behind a confdir3/ directory upon
interrupt
Invoke the test program via an init.sh-using wrapper.
* tests/test-getcwd.sh: New file.
* modules/getcwd-tests (Files): Add it.
(Makefile.am) [TESTS]: Invoke the shell script wrapper.
---
ChangeLog | 8 ++++++++
modules/getcwd-tests | 4 +++-
tests/test-getcwd.sh | 7 +++++++
3 files changed, 18 insertions(+), 1 deletions(-)
create mode 100755 tests/test-getcwd.sh
diff --git a/ChangeLog b/ChangeLog
index 49ae5ca..3fc2c94 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-11-17 Jim Meyering <address@hidden>
+
+ test-getcwd: don't leave behind a confdir3/ directory upon interrupt
+ Invoke the test program via an init.sh-using wrapper.
+ * tests/test-getcwd.sh: New file.
+ * modules/getcwd-tests (Files): Add it.
+ (Makefile.am) [TESTS]: Invoke the shell script wrapper.
+
2011-11-01 Gary V. Vaughan <address@hidden>
gitlog-to-changelog: support multi-author commits.
diff --git a/modules/getcwd-tests b/modules/getcwd-tests
index 59710ee..1cbf0fb 100644
--- a/modules/getcwd-tests
+++ b/modules/getcwd-tests
@@ -1,5 +1,7 @@
Files:
tests/test-getcwd.c
+tests/test-getcwd.sh
+tests/init.sh
Depends-on:
errno
@@ -11,6 +13,6 @@ sys_stat
configure.ac:
Makefile.am:
-TESTS += test-getcwd
+TESTS += test-getcwd.sh
check_PROGRAMS += test-getcwd
test_getcwd_LDADD = $(LDADD) @LIBINTL@
diff --git a/tests/test-getcwd.sh b/tests/test-getcwd.sh
new file mode 100755
index 0000000..a886b6e
--- /dev/null
+++ b/tests/test-getcwd.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+. "${srcdir=.}/init.sh"; path_prepend_ .
+
+test-getcwd
+
+Exit $?
--
1.7.8.rc2.3.g0911
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] test-getcwd: don't leave behind a confdir3/ directory upon interrupt,
Jim Meyering <=