From: Ruediger Meier Date: Sat, 15 Mar 2014 02:30:36 +0000 (+0000) Subject: tests: fix utmpdump/ipv6totxt for bigendian X-Git-Tag: v2.25-rc1~398^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c52dbd6cde3d9cb376be40e9cb3f9702bb1aa8fb;p=thirdparty%2Futil-linux.git tests: fix utmpdump/ipv6totxt for bigendian Signed-off-by: Ruediger Meier --- diff --git a/tests/ts/utmpdump/ipv6bin.BE b/tests/ts/utmpdump/ipv6bin.BE new file mode 100644 index 0000000000..8cf7d39650 Binary files /dev/null and b/tests/ts/utmpdump/ipv6bin.BE differ diff --git a/tests/ts/utmpdump/ipv6bin b/tests/ts/utmpdump/ipv6bin.LE similarity index 100% rename from tests/ts/utmpdump/ipv6bin rename to tests/ts/utmpdump/ipv6bin.LE diff --git a/tests/ts/utmpdump/ipv6totxt b/tests/ts/utmpdump/ipv6totxt index b9da8abd7c..e329b13182 100755 --- a/tests/ts/utmpdump/ipv6totxt +++ b/tests/ts/utmpdump/ipv6totxt @@ -20,8 +20,10 @@ ts_init "$*" ts_check_test_command "$TS_CMD_UTMPDUMP" +BYTE_ORDER=$($TS_HELPER_SYSINFO byte-order) + export LANG=C export TZ=GMT -$TS_CMD_UTMPDUMP $TS_SELF/ipv6bin >| $TS_OUTPUT 2>/dev/null +$TS_CMD_UTMPDUMP $TS_SELF/ipv6bin.$BYTE_ORDER >| $TS_OUTPUT 2>/dev/null ts_finalize