From: Ruediger Meier Date: Sat, 15 Mar 2014 03:02:26 +0000 (+0000) Subject: tests: fix utmpdump/to-binary for bigendian X-Git-Tag: v2.25-rc1~398^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=151602435616bd879ce5617189fa7a438f0d0e6d;p=thirdparty%2Futil-linux.git tests: fix utmpdump/to-binary for bigendian Signed-off-by: Ruediger Meier --- diff --git a/tests/expected/utmpdump/to-binary b/tests/expected/utmpdump/to-binary index 45d35bbb0b..d0f1b61c2a 100644 Binary files a/tests/expected/utmpdump/to-binary and b/tests/expected/utmpdump/to-binary differ diff --git a/tests/ts/utmpdump/to-binary b/tests/ts/utmpdump/to-binary index e774915e7b..ecda0cca0f 100755 --- a/tests/ts/utmpdump/to-binary +++ b/tests/ts/utmpdump/to-binary @@ -20,8 +20,14 @@ 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 -r $TS_SELF/text >| $TS_OUTPUT 2>/dev/null +OUTFILE=${TS_OUTDIR}/${TS_TESTNAME}.file +$TS_CMD_UTMPDUMP -r $TS_SELF/text >| $OUTFILE 2>/dev/null +if diff -q $TS_SELF/binary.$BYTE_ORDER $OUTFILE; then + echo "no diff" +fi > $TS_OUTPUT 2>&1 ts_finalize