mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
Add test for ln subscript error.
This commit is contained in:
1 parent
90f1d430c9
commit
9338e5d901
1 file changed
+6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user