From a3ec215973c3653ebdeb81dcdd1274519c376a3d Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Sun, 21 Aug 2016 05:23:24 +0000 Subject: diffutils-3.5 --- tests/excess-slash | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 tests/excess-slash (limited to 'tests/excess-slash') diff --git a/tests/excess-slash b/tests/excess-slash new file mode 100755 index 0000000..22c2060 --- /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 /dev/null err || fail=1 + +compare expected-out out || fail=1 + +Exit $fail -- cgit v1.2.1