summaryrefslogtreecommitdiff
path: root/tests/install/create-leading
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-09-08 09:22:49 +0200
committerJim Meyering <jim@meyering.net>2007-09-15 08:40:38 +0200
commit74ffe86ed05cd6bab4b9d31d63cf94637f867c04 (patch)
tree96e8be7c1101c94d4f51969011cd761de9265d63 /tests/install/create-leading
parenta0cbaa4fc80a6b75b4f3b09f46a05702449fd7e4 (diff)
downloadcoreutils-74ffe86ed05cd6bab4b9d31d63cf94637f867c04.tar.xz
Convert tests/install/, too.
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