mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 19:36:44 +02:00
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
From c668fe310d77e7257031b8ab89abdc373ad17275 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?S=C3=B6ren=20Tempel?= <soeren+git@soeren-tempel.net>
|
|
Date: Tue, 8 Oct 2024 02:55:06 +0200
|
|
Subject: [PATCH] hexdump: Skip a single test on big-endian systems
|
|
|
|
See: https://lists.busybox.net/pipermail/busybox/2024-October/090952.html
|
|
---
|
|
testsuite/hexdump.tests | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/testsuite/hexdump.tests b/testsuite/hexdump.tests
|
|
index be0379cfc..32505ba64 100755
|
|
--- a/testsuite/hexdump.tests
|
|
+++ b/testsuite/hexdump.tests
|
|
@@ -5,6 +5,10 @@
|
|
|
|
. ./testing.sh
|
|
|
|
+little_endian=false
|
|
+{ printf '\0\1' | od -s | grep -q 256; } && little_endian=true
|
|
+readonly little_endian
|
|
+
|
|
# testing "description" "command" "result" "infile" "stdin"
|
|
testing 'hexdump -C with four NULs' \
|
|
'hexdump -C' \
|
|
@@ -66,6 +70,7 @@ testing "hexdump -e /1 %d" \
|
|
"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"\
|
|
"\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"\
|
|
|
|
+$little_endian || SKIP=1
|
|
testing "hexdump -e /2 %d" \
|
|
"hexdump -e '8/2 \" %6d\" \"\n\"'" \
|
|
"\
|