summaryrefslogtreecommitdiffstats
path: root/tests/ts/utmp
diff options
context:
space:
mode:
authorSami Kerola2016-05-15 11:42:25 +0200
committerSami Kerola2016-06-27 20:57:05 +0200
commit73f46aedc316efbb8e2a719c1c6c3aef364a5553 (patch)
tree737397008bf8640acd6e92064d54f161fe0cf62b /tests/ts/utmp
parenttests: fix utmpdump timestamps to be in iso format (diff)
downloadkernel-qcow2-util-linux-73f46aedc316efbb8e2a719c1c6c3aef364a5553.tar.gz
kernel-qcow2-util-linux-73f46aedc316efbb8e2a719c1c6c3aef364a5553.tar.xz
kernel-qcow2-util-linux-73f46aedc316efbb8e2a719c1c6c3aef364a5553.zip
tests: challenge utmpdump localization go-around
The utmpdump timestamps are unambiguous, they always use UTC-0 regardless of localization. If thesse tests starts to fail after this change then the timezone forcing is not working. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'tests/ts/utmp')
-rwxr-xr-xtests/ts/utmp/utmpdump-circle2
-rwxr-xr-xtests/ts/utmp/utmpdump-tobin2
-rwxr-xr-xtests/ts/utmp/utmpdump-tobin-ipv62
-rwxr-xr-xtests/ts/utmp/utmpdump-totxt2
-rwxr-xr-xtests/ts/utmp/utmpdump-totxt-ipv62
5 files changed, 5 insertions, 5 deletions
diff --git a/tests/ts/utmp/utmpdump-circle b/tests/ts/utmp/utmpdump-circle
index 9663dba70..0065f705b 100755
--- a/tests/ts/utmp/utmpdump-circle
+++ b/tests/ts/utmp/utmpdump-circle
@@ -22,7 +22,7 @@ ts_init "$*"
ts_check_test_command "$TS_CMD_UTMPDUMP"
export LANG=C
-export TZ=GMT
+export TZ=Asia/Tokyo
OUT_BIN1=${TS_OUTDIR}/${TS_TESTNAME}.bin1
OUT_BIN2=${TS_OUTDIR}/${TS_TESTNAME}.bin2
OUT_TXT=${TS_OUTDIR}/${TS_TESTNAME}.txt
diff --git a/tests/ts/utmp/utmpdump-tobin b/tests/ts/utmp/utmpdump-tobin
index 2f14bfc14..8b089e6f4 100755
--- a/tests/ts/utmp/utmpdump-tobin
+++ b/tests/ts/utmp/utmpdump-tobin
@@ -22,7 +22,7 @@ ts_init "$*"
[ $SIZEOF_UTMP -eq 384 ] || ts_skip "utmp struct size $SIZEOF_UTMP"
export LANG=C
-export TZ=GMT
+export TZ=Asia/Tokyo
OUTFILE=${TS_OUTDIR}/${TS_TESTNAME}.file
$TS_CMD_UTMPDUMP -r $TS_SELF/txt-b >| $OUTFILE 2>/dev/null
if diff -q $TS_SELF/wtmp-b.$BYTE_ORDER $OUTFILE; then
diff --git a/tests/ts/utmp/utmpdump-tobin-ipv6 b/tests/ts/utmp/utmpdump-tobin-ipv6
index e0b19cd13..cd081398e 100755
--- a/tests/ts/utmp/utmpdump-tobin-ipv6
+++ b/tests/ts/utmp/utmpdump-tobin-ipv6
@@ -22,7 +22,7 @@ ts_init "$*"
[ $SIZEOF_UTMP -eq 384 ] || ts_skip "utmp struct size $SIZEOF_UTMP"
export LANG=C
-export TZ=GMT
+export TZ=Asia/Tokyo
OUTFILE=${TS_OUTDIR}/${TS_TESTNAME}.file
$TS_CMD_UTMPDUMP -r $TS_SELF/txt-ipv6 >| $OUTFILE 2>/dev/null
if diff -q $TS_SELF/wtmp-ipv6.$BYTE_ORDER $OUTFILE; then
diff --git a/tests/ts/utmp/utmpdump-totxt b/tests/ts/utmp/utmpdump-totxt
index 37d376a8b..099533ca9 100755
--- a/tests/ts/utmp/utmpdump-totxt
+++ b/tests/ts/utmp/utmpdump-totxt
@@ -22,7 +22,7 @@ ts_init "$*"
[ $SIZEOF_UTMP -eq 384 ] || ts_skip "utmp struct size $SIZEOF_UTMP"
export LANG=C
-export TZ=GMT
+export TZ=Asia/Tokyo
$TS_CMD_UTMPDUMP $TS_SELF/wtmp-b.$BYTE_ORDER >| $TS_OUTPUT 2>/dev/null
ts_finalize
diff --git a/tests/ts/utmp/utmpdump-totxt-ipv6 b/tests/ts/utmp/utmpdump-totxt-ipv6
index 1b2178386..bc9704e32 100755
--- a/tests/ts/utmp/utmpdump-totxt-ipv6
+++ b/tests/ts/utmp/utmpdump-totxt-ipv6
@@ -22,7 +22,7 @@ ts_init "$*"
[ $SIZEOF_UTMP -eq 384 ] || ts_skip "utmp struct size $SIZEOF_UTMP"
export LANG=C
-export TZ=GMT
+export TZ=Asia/Tokyo
$TS_CMD_UTMPDUMP $TS_SELF/wtmp-ipv6.$BYTE_ORDER >| $TS_OUTPUT 2>/dev/null
ts_finalize