← Commit list

b8ce2084c

Radoslav Kolev
Radoslav Kolev
2025-07-01
SUCCESS Duration: 158s

Subject

od: make -B test little endian only, add variant for big endian

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/od.tests+12 -1
@@ -61,7 +61,8 @@ testing "od -a (DESKTOP)" \
"\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
SKIP=
-testing "od -B" \
+$little_endian || SKIP=1
+testing "od -B (little-endian)" \
"od -B" \
"\
0000000 001001 005003 041101 177103
@@ -70,6 +71,16 @@ testing "od -B" \
"" "$input"
SKIP=
+$little_endian && SKIP=1
+testing "od -B (big-endian)" \
+ "od -B" \
+"\
+0000000 000402 001412 040502 041776
+0000010
+" \
+ "" "$input"
+SKIP=
+
$little_endian || SKIP=1
testing "od -o (little-endian)" \
"od -o" \