summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-06-25 07:14:08 +0000
committerJim Meyering <jim@meyering.net>2004-06-25 07:14:08 +0000
commit9338e5d901e68058449854ceae4e4dc6d157b001 (patch)
treed1228ee7317ccfd17894e8c0e0d74a7e93619836 /tests
parent90f1d430c9d1774613c6aefdf02db2f5bf48a8d4 (diff)
downloadcoreutils-9338e5d901e68058449854ceae4e4dc6d157b001.tar.xz
Add test for ln subscript error.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/ln/misc6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ln/misc b/tests/ln/misc
index 3a9d8d9bf..cff452ba7 100755
--- a/tests/ln/misc
+++ b/tests/ln/misc
@@ -125,6 +125,12 @@ for cmd in ln cp mv ginstall; do
done
# ===================================================
+# With coreutils-5.2.1, this would mistakenly access argv[1][-1].
+# I'm including it here, in case some day programs like valgrind detect that.
+# Purify probably would have done so.
+ln foo '' 2> /dev/null
+
+# ===================================================
if test $framework_failure = 1; then
echo 'failure in testing framework' 1>&2