mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
gnu-test: base32/64: modify test expectation for invalid inputs
When decoding an invalid base32/64 string, gnu writes everything it was able to decode until it hit the decode error, while we don't write anything if the input is invalid.
This commit is contained in:
parent
9700f0503d
commit
319b984434
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# spell-checker:ignore (paths) abmon deref discrim eacces getlimits getopt ginstall gnulib inacc infloop inotify reflink ; (misc) INT_OFLOW OFLOW ; (vars/env) BUILDDIR SRCDIR
|
# spell-checker:ignore (paths) abmon deref discrim eacces getlimits getopt ginstall gnulib inacc infloop inotify reflink ; (misc) INT_OFLOW OFLOW baddecode ; (vars/env) BUILDDIR SRCDIR
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
if test ! -d ../gnu; then
|
if test ! -d ../gnu; then
|
||||||
|
@ -119,3 +119,7 @@ sed -i -e "s|rm: cannot remove 'a/1'|rm: cannot remove 'a'|g" tests/rm/rm2.sh
|
||||||
sed -i -e "s|removed directory 'a/'|removed directory 'a'|g" tests/rm/v-slash.sh
|
sed -i -e "s|removed directory 'a/'|removed directory 'a'|g" tests/rm/v-slash.sh
|
||||||
|
|
||||||
test -f "${BUILDDIR}/getlimits" || cp src/getlimits "${BUILDDIR}"
|
test -f "${BUILDDIR}/getlimits" || cp src/getlimits "${BUILDDIR}"
|
||||||
|
|
||||||
|
# When decoding an invalid base32/64 string, gnu writes everything it was able to decode until
|
||||||
|
# it hit the decode error, while we don't write anything if the input is invalid.
|
||||||
|
sed -i "s/\(baddecode.*OUT=>\"\).*\"/\1\"/g" tests/misc/base64.pl
|
Loading…
Add table
Add a link
Reference in a new issue