]> gitweb.michael.orlitzky.com - apply-default-acl.git/commitdiff
run-tests.sh: add a test for the "Not a directory" error message.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 2 Mar 2018 00:21:16 +0000 (19:21 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 2 Mar 2018 00:21:16 +0000 (19:21 -0500)
run-tests.sh

index 68b3b80907b125602ac8d468a373656a7ceec011..ad50c796d2d4467c0bc2a85998088a32101f6857 100755 (executable)
@@ -864,3 +864,13 @@ mkdir "${TESTDIR}/baz"
 ACTUAL="$?"
 EXPECTED="0"
 compare
+
+
+# We should get "Not a directory" if we stick a trailing slash on the
+# end of the path to a file.
+TESTNUM=39
+TARGET="${TESTDIR}/foo"
+touch "${TARGET}"
+ACTUAL=$( "${BIN}" "${TARGET}/" 2>&1 )
+EXPECTED="${TARGET}/: Not a directory"
+compare