← Commit list

0011a6bc2

Denys Vlasenko
Denys Vlasenko
2022-08-22
SUCCESS Duration: 156s

Subject

xxd: add two more testcases

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

testsuite/xxd.tests+16 -2
@@ -40,10 +40,24 @@ testing 'xxd -p -r' \
testing 'xxd -r skips leading whitespace and truncates at two spaces' \
'xxd -r' \
'0123456789:;<=>?@' \
- '' \
-"\
+ '' "\
00000000: 3031 3233 3435 3637 3839 3a3b 3c3d 3e3f 0123456789:;<=>?
00000010: 40 @
"
+testing 'xxd -p -r skips one bad char, truncates at two bad chars' \
+ 'xxd -p -r' \
+ '01' \
+ '' "\
+30 !31 !!32
+"
+
+testing 'xxd -p -r ignores the nibble with 2nd char bad' \
+ 'xxd -p -r' \
+ '3C6' \
+ '' "\
+33 3!4 3!!5
+36
+"
+
exit $FAILCOUNT