]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Add test for ln subscript error.
authorJim Meyering <jim@meyering.net>
Fri, 25 Jun 2004 07:14:08 +0000 (07:14 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 25 Jun 2004 07:14:08 +0000 (07:14 +0000)
tests/ln/misc

index 3a9d8d9bf92d553b54111450fa7cd9d1f743067c..cff452ba75b705cdf02715bebff56f0f32265a35 100755 (executable)
@@ -124,6 +124,12 @@ for cmd in ln cp mv ginstall; do
   test -f a.orig || fail=1
 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