From: Jim Meyering Date: Wed, 25 Nov 2009 15:52:47 +0000 (+0100) Subject: test-pread.sh: clean up X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b1723bc19a2770a3f57e6432347dab683e2f027;p=pspp test-pread.sh: clean up * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".". * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir. That is unnecessary, since it's always ".". Suggestion from Eric Blake. --- diff --git a/ChangeLog b/ChangeLog index 04898b06bd..09a03ddda4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2009-11-25 Jim Meyering + test-pread.sh: clean up + * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".". + * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir. + That is unnecessary, since it's always ".". + Suggestion from Eric Blake. + test-pread.sh: make executable * tests/test-pread.sh: Set executable bit. Reported by Eric Blake. diff --git a/modules/pread-tests b/modules/pread-tests index 7a4e7a70c8..9d3dec8bef 100644 --- a/modules/pread-tests +++ b/modules/pread-tests @@ -10,5 +10,4 @@ Makefile.am: TESTS += test-pread.sh check_PROGRAMS += test-pread TESTS_ENVIRONMENT += \ - srcdir='$(srcdir)' \ - builddir='$(builddir)' + srcdir='$(srcdir)' diff --git a/tests/test-pread.sh b/tests/test-pread.sh index fba415ea12..98971a4c58 100755 --- a/tests/test-pread.sh +++ b/tests/test-pread.sh @@ -1,6 +1,6 @@ #!/bin/sh -: ${srcdir=.} ${builddir=.} -. $srcdir/init.sh --set-path=$builddir +: ${srcdir=.} +. $srcdir/init.sh --set-path=. fail=0; test-pread || fail=1