mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
tests: od: check T, P and E suffixes after 0 or 0x in -N
* tests/od/od-N.sh: Ensure -N accepts octal and hex values with T, P, E, TB, PB and EB suffixes. https://github.com/uutils/coreutils/pull/15930 Link: https://github.com/coreutils/coreutils/pull/451
This commit is contained in:
1 parent
20faee4d42
commit
fc65b03e3f
1 file changed
+7
@@ -54,6 +54,13 @@ printf '\001%10s\000%10s\000' | od -S10 > out || fail=1
|
||||
printf '%07o %10s\n' 1 '' 12 '' > exp || framework_failure_
|
||||
compare exp out || fail=1
|
||||
|
||||
# Ensure T, P and E suffixes work after a 0 or 0x prefix
|
||||
od -An -c in > exp || framework_failure_
|
||||
for n in 01T 01P 01E 01TB 01PB 01EB 0x1T 0x1P; do
|
||||
od -An -c -N$n in > out || fail=1
|
||||
compare exp out || fail=1
|
||||
done
|
||||
|
||||
# Ensure no address output for read error
|
||||
# (Users may use -N0 -j... to do base conversion)
|
||||
if ! cat . >/dev/null 2>&1; then
|
||||
|
||||
Reference in new issue
Block a user