diff options
author | Jim Meyering <jim@meyering.net> | 2000-11-18 13:48:25 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-11-18 13:48:25 +0000 |
commit | 9ca70467e90f86f64d37b3d94081f980017a8f22 (patch) | |
tree | fe6c3f74d53f7cc90edf41ee8e773683dd00ac0d /tests/mkdir | |
parent | 16f1ca4c354c7c7422da15faa4760b3f83b1b0b3 (diff) | |
download | coreutils-9ca70467e90f86f64d37b3d94081f980017a8f22.tar.xz |
*** empty log message ***
Diffstat (limited to 'tests/mkdir')
-rwxr-xr-x | tests/mkdir/t-slash | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/mkdir/t-slash b/tests/mkdir/t-slash new file mode 100755 index 000000000..8a120cf6e --- /dev/null +++ b/tests/mkdir/t-slash @@ -0,0 +1,28 @@ +#!/bin/sh +# make sure --parents works with a trailing slash + +if test "$VERBOSE" = yes; then + set -x + mkdir --version +fi + +pwd=`pwd` +tmp=t-slash.$$ +trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0 +trap '(exit $?); exit' 1 2 13 15 + +framework_failure=0 +mkdir $tmp || framework_failure=1 +cd $tmp || framework_failure=1 + +if test $framework_failure = 1; then + echo 'failure in testing framework' + (exit 1); exit +fi + +fail=0 + +mkdir -p dir/ || fail=1 +test -d dir || fail=1 + +(exit $fail); exit |