diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-06 22:51:15 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-06 22:51:15 -0800 |
commit | 20c6d7ec2c817aa561410130efc8c8254fbef2b2 (patch) | |
tree | 7fedf733ccf6f9ff3ee00913c4fc07110f4a7ba9 /tests/excess-slash | |
download | diffutils-20c6d7ec2c817aa561410130efc8c8254fbef2b2.tar.gz diffutils-20c6d7ec2c817aa561410130efc8c8254fbef2b2.tar.bz2 diffutils-20c6d7ec2c817aa561410130efc8c8254fbef2b2.zip |
Imported Upstream version 3.2upstream/3.2
Diffstat (limited to 'tests/excess-slash')
-rw-r--r-- | tests/excess-slash | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/excess-slash b/tests/excess-slash new file mode 100644 index 0000000..32ffc89 --- /dev/null +++ b/tests/excess-slash @@ -0,0 +1,18 @@ +#!/bin/sh +# Ensure that no excess slash appears in diff -r output. + +. "${srcdir=.}/init.sh"; path_prepend_ ../src + +mkdir -p a/f b/f/g || framework_failure_ +echo Only in b/f: g > expected-out || framework_failure_ + +fail=0 + +diff -r a b/ > out 2> err && fail=1 + +# expect no stderr +compare err /dev/null || fail=1 + +compare out expected-out || fail=1 + +Exit $fail |