changeset 13363:282cf4393ce3

test-pwrite: do not leave behind a test file named "out" Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7. The trivial-looking use of init.sh is really necessary. It ensures that the temporary file, "out", is created in a temporary directory, and removed upon termination. * tests/test-pwrite.sh: Re-add file. * modules/pwrite-tests: Reference it.
author Jim Meyering <meyering@redhat.com>
date Sun, 23 May 2010 10:32:12 +0200
parents 675b7e853696
children f07c1f071ff0
files ChangeLog modules/pwrite-tests tests/test-pwrite.sh
diffstat 3 files changed, 19 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2010-05-23  Jim Meyering  <meyering@redhat.com>
+
+	test-pwrite: do not leave behind a test file named "out"
+	Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
+	The trivial-looking use of init.sh is really necessary.
+	It ensures that the temporary file, "out", is created in
+	a temporary directory, and removed upon termination.
+	* tests/test-pwrite.sh: Re-add file.
+	* modules/pwrite-tests: Reference it.
+
 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
 	Fix output redirection buglet in init.sh.
--- a/modules/pwrite-tests
+++ b/modules/pwrite-tests
@@ -1,4 +1,5 @@
 Files:
+tests/test-pwrite.sh
 tests/test-pwrite.c
 tests/init.sh
 tests/signature.h
@@ -9,5 +10,5 @@
 configure.ac:
 
 Makefile.am:
-TESTS += test-pwrite
+TESTS += test-pwrite.sh
 check_PROGRAMS += test-pwrite
new file mode 100755
--- /dev/null
+++ b/tests/test-pwrite.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+. "${srcdir=.}/init.sh"; path_prepend_ .
+
+fail=0
+test-pwrite || fail=1
+
+Exit $fail