summaryrefslogtreecommitdiff
path: root/tests/install/create-leading
diff options
context:
space:
mode:
Diffstat (limited to 'tests/install/create-leading')
-rwxr-xr-xtests/install/create-leading13
1 files changed, 3 insertions, 10 deletions
diff --git a/tests/install/create-leading b/tests/install/create-leading
index e4441687c..c639dc554 100755
--- a/tests/install/create-leading
+++ b/tests/install/create-leading
@@ -1,7 +1,7 @@
#! /bin/sh
# Test -D option.
-# Copyright (C) 2000, 2001, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2001, 2006, 2007 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -24,17 +24,10 @@ if test "$VERBOSE" = yes; then
ginstall --version
fi
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-dir=install-D$$
-
-trap 'cd "$pwd" && rm -rf $dir' 0 1 2 3 15
-
-mkdir $dir
+. $srcdir/../test-lib.sh
fail=0
-cd $dir
+
file=file
echo foo > $file