1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

ln: make the tests/ln/hard-backup.sh test work

We haven't a great error message with hard link on the same file

+ Update the GNU error message to match ours
This commit is contained in:
Sylvestre Ledru 2022-03-30 00:11:27 +02:00
parent de71d01959
commit 050b5b0c9b
3 changed files with 33 additions and 1 deletions

View file

@ -158,3 +158,6 @@ sed -i -e "s~ sed -n \"1s/'\\\/'/'OPT'/p\" < err >> pat || framework_failure_~
# And change the default error code to 2
# see issue #3331
sed -i -e "s/rcexp=1$/rcexp=2\n case \"\$prg\" in chcon|dir|runcon|vdir) return;; esac/" tests/misc/usage_vs_getopt.sh
# Update the GNU error message to match ours
sed -i -e "s/ln: 'f' and 'f' are the same file/ln: failed to link: 'f' and 'f' are the same file/g" tests/ln/hard-backup.sh