From: Sami Kerola Date: Sun, 15 May 2016 09:42:25 +0000 (+0100) Subject: tests: challenge utmpdump localization go-around X-Git-Tag: v2.29-rc1~169^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73f46aedc316efbb8e2a719c1c6c3aef364a5553;p=thirdparty%2Futil-linux.git 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 --- diff --git a/tests/ts/utmp/utmpdump-circle b/tests/ts/utmp/utmpdump-circle index 9663dba701..0065f705b4 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 2f14bfc149..8b089e6f43 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 e0b19cd130..cd081398e8 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 37d376a8ba..099533ca9c 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 1b21783863..bc9704e327 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