Signed-off-by: Mark Wielaard <mjw@redhat.com>
+2013-04-29 Mark Wielaard <mjw@redhat.com>
+
+ * test-subr.sh: Don't use pushd, just cd into test-dir.
+ (exit_cleanup): Don't use popd, just cd .. to get out.
+
2013-04-27 Mark Wielaard <mjw@redhat.com>
* test-subr.sh (exit_cleanup): New function.
# Each test runs in its own directory to make sure they can run in parallel.
test_dir="test-$$"
mkdir -p "$test_dir"
-pushd "$test_dir" > /dev/null
+cd "$test_dir"
#LC_ALL=C
#export LC_ALL
# Tests that trap EXIT (0) themselves should call this explicitly.
exit_cleanup()
{
- rm -f $remove_files; popd > /dev/null; rmdir $test_dir
+ rm -f $remove_files; cd ..; rmdir $test_dir
}
trap exit_cleanup 0