diff options
author | Jim Meyering <jim@meyering.net> | 2007-09-10 08:00:39 +0200 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-09-15 08:40:39 +0200 |
commit | be23f60132655a40bc65fc8437509ec02663d1be (patch) | |
tree | d04f52a324fb1cd60f45893ec615b8c9fe2fcd53 /tests/mkdir/p-1 | |
parent | 570fd054c62fb5982e92f2d03c6397b4c3e2a207 (diff) | |
download | coreutils-be23f60132655a40bc65fc8437509ec02663d1be.tar.xz |
Convert tests/mkdir/ to use test-lib.sh.
Diffstat (limited to 'tests/mkdir/p-1')
-rwxr-xr-x | tests/mkdir/p-1 | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/mkdir/p-1 b/tests/mkdir/p-1 index 43e180571..7ef63be52 100755 --- a/tests/mkdir/p-1 +++ b/tests/mkdir/p-1 @@ -1,7 +1,7 @@ #!/bin/sh # Test "mkdir -p". -# Copyright (C) 1997, 2000, 2002, 2006 Free Software Foundation, Inc. +# Copyright (C) 1997, 2000, 2002, 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 @@ -21,13 +21,10 @@ if test "$VERBOSE" = yes; then mkdir --version fi -pwd=`pwd` -tmp=`echo "$0"|sed 's,.*/,,'`.tmp -trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0 -trap '(exit $?); exit' 1 2 13 15 +. $srcdir/../test-lib.sh -mkdir --parents "$pwd/$tmp" || fail=1 - -test -d $tmp || fail=1 +fail=0 +mkdir --parents "`pwd`/t" || fail=1 +test -d t || fail=1 exit $fail |