diff options
author | Ruediger Meier | 2014-03-15 03:30:36 +0100 |
---|---|---|
committer | Ruediger Meier | 2014-03-15 06:04:31 +0100 |
commit | c52dbd6cde3d9cb376be40e9cb3f9702bb1aa8fb (patch) | |
tree | 3815d6134cd20700b901e346a64874428e30ecc2 /tests/ts | |
parent | tests: fix utmpdump/to-text for bigendian (diff) | |
download | kernel-qcow2-util-linux-c52dbd6cde3d9cb376be40e9cb3f9702bb1aa8fb.tar.gz kernel-qcow2-util-linux-c52dbd6cde3d9cb376be40e9cb3f9702bb1aa8fb.tar.xz kernel-qcow2-util-linux-c52dbd6cde3d9cb376be40e9cb3f9702bb1aa8fb.zip |
tests: fix utmpdump/ipv6totxt for bigendian
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests/ts')
-rw-r--r-- | tests/ts/utmpdump/ipv6bin.BE | bin | 0 -> 768 bytes | |||
-rw-r--r-- | tests/ts/utmpdump/ipv6bin.LE (renamed from tests/ts/utmpdump/ipv6bin) | bin | 768 -> 768 bytes | |||
-rwxr-xr-x | tests/ts/utmpdump/ipv6totxt | 4 |
3 files changed, 3 insertions, 1 deletions
diff --git a/tests/ts/utmpdump/ipv6bin.BE b/tests/ts/utmpdump/ipv6bin.BE Binary files differnew file mode 100644 index 000000000..8cf7d3965 --- /dev/null +++ b/tests/ts/utmpdump/ipv6bin.BE diff --git a/tests/ts/utmpdump/ipv6bin b/tests/ts/utmpdump/ipv6bin.LE Binary files differindex 342553bb9..342553bb9 100644 --- a/tests/ts/utmpdump/ipv6bin +++ b/tests/ts/utmpdump/ipv6bin.LE diff --git a/tests/ts/utmpdump/ipv6totxt b/tests/ts/utmpdump/ipv6totxt index b9da8abd7..e329b1318 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 |