Tests defs: rename $curdir -> $testbuilddir
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 5 Nov 2010 16:23:31 +0000 (17:23 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 10 Nov 2010 22:59:10 +0000 (23:59 +0100)
* tests/defs.in: Rename $curdir to $testbuildir, for clarity and
consistency with $testsrcdir and $top_testsrcdir.

ChangeLog
tests/defs.in

index 9101b5f..f543d70 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2010-11-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
+       Tests defs: rename $curdir -> $testbuilddir
+       * tests/defs.in: Rename $curdir to $testbuildir, for clarity and
+       consistency with $testsrcdir and $top_testsrcdir.
+
        Tests defs: prefer "$curdir" over "`pwd`".
        * tests/defs.in: We already save the value of `pwd` in $curdir
        early in the file, so there no need to recalculate it later, when
index 700365d..caea225 100644 (file)
@@ -102,10 +102,10 @@ sleep='sleep @MODIFICATION_DELAY@'
 old_timestamp=198309271735.59
 
 # Absolute path of the testsuite buildir.
-curdir=`pwd`
+testbuilddir=`pwd`
 
 # Make our wrapper scripts accessible by default.
-PATH="$curdir$PATH_SEPARATOR$PATH"; export PATH
+PATH="$testbuilddir$PATH_SEPARATOR$PATH"; export PATH
 
 
 ## -------------------------------------------------------- ##
@@ -395,10 +395,10 @@ case " $required " in
     esac
     # Libtool cannot cope with spaces in the build tree.  Our testsuite setup
     # cannot cope with spaces in the source tree name for Libtool and gettext
-    # tests.  Using just `$curdir' for the check here is ok, since the further
-    # temporary subdirectory where the test will be run is ensured not to
-    # contain any space.
-    case $testsrcdir,$curdir in
+    # tests.  Using just `$testbuilddir' for the check here is ok, since the
+    # further temporary subdirectory where the test will be run is ensured not
+    # to contain any space.
+    case $testsrcdir,$testbuilddir in
       *\ * | *\        *) exit 77;;
     esac
     ACLOCAL="$ACLOCAL -Wno-syntax -I $top_testsrcdir/m4 $extra_includes -I $aclocaldir"
@@ -429,7 +429,7 @@ sh_errexit_works=@sh_errexit_works@
 if test "$sh_errexit_works" = yes; then
   trap 'exit_status=$?
     set +e
-    cd "$curdir"
+    cd "$testbuilddir"
     case $exit_status,$keep_testdirs in
     0,)
       find $testSubDir -type d ! -perm -200 -exec chmod u+w {} ";"