Return-Path: util-linux-owner@vger.kernel.org Received: from mail-wm0-f66.google.com ([74.125.82.66]:34766 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751328AbcEORbR (ORCPT ); Sun, 15 May 2016 13:31:17 -0400 Received: by mail-wm0-f66.google.com with SMTP id n129so13475348wmn.1 for ; Sun, 15 May 2016 10:31:17 -0700 (PDT) From: Sami Kerola To: util-linux@vger.kernel.org Cc: Sami Kerola Subject: [PATCH 10/11] tests: remove utmpdump localization go-arounds Date: Sun, 15 May 2016 18:30:56 +0100 Message-Id: <1463333457-1011-11-git-send-email-kerolasa@iki.fi> In-Reply-To: <1463333457-1011-1-git-send-email-kerolasa@iki.fi> References: <1463333457-1011-1-git-send-email-kerolasa@iki.fi> Sender: util-linux-owner@vger.kernel.org List-ID: The utmpdump is using unambigous timestamp format that is forced to use UTC-0 timezone. This deprecates need to enforce localization in tests. Signed-off-by: Sami Kerola --- tests/ts/utmp/utmpdump-circle | 2 -- tests/ts/utmp/utmpdump-tobin | 2 -- tests/ts/utmp/utmpdump-tobin-ipv6 | 2 -- tests/ts/utmp/utmpdump-totxt | 2 -- tests/ts/utmp/utmpdump-totxt-ipv6 | 2 -- 5 files changed, 10 deletions(-) diff --git a/tests/ts/utmp/utmpdump-circle b/tests/ts/utmp/utmpdump-circle index 9663dba..41d7de6 100755 --- a/tests/ts/utmp/utmpdump-circle +++ b/tests/ts/utmp/utmpdump-circle @@ -21,8 +21,6 @@ ts_init "$*" # this test is arch independent, no need for utmp_functions.sh ts_check_test_command "$TS_CMD_UTMPDUMP" -export LANG=C -export TZ=GMT 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 2f14bfc..4054952 100755 --- a/tests/ts/utmp/utmpdump-tobin +++ b/tests/ts/utmp/utmpdump-tobin @@ -21,8 +21,6 @@ ts_init "$*" . "$TS_SELF/utmp_functions.sh" [ $SIZEOF_UTMP -eq 384 ] || ts_skip "utmp struct size $SIZEOF_UTMP" -export LANG=C -export TZ=GMT 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 e0b19cd..3198d3c 100755 --- a/tests/ts/utmp/utmpdump-tobin-ipv6 +++ b/tests/ts/utmp/utmpdump-tobin-ipv6 @@ -21,8 +21,6 @@ ts_init "$*" . "$TS_SELF/utmp_functions.sh" [ $SIZEOF_UTMP -eq 384 ] || ts_skip "utmp struct size $SIZEOF_UTMP" -export LANG=C -export TZ=GMT 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 37d376a..cde1f4c 100755 --- a/tests/ts/utmp/utmpdump-totxt +++ b/tests/ts/utmp/utmpdump-totxt @@ -21,8 +21,6 @@ ts_init "$*" . "$TS_SELF/utmp_functions.sh" [ $SIZEOF_UTMP -eq 384 ] || ts_skip "utmp struct size $SIZEOF_UTMP" -export LANG=C -export TZ=GMT $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 1b21783..5fc3d9c 100755 --- a/tests/ts/utmp/utmpdump-totxt-ipv6 +++ b/tests/ts/utmp/utmpdump-totxt-ipv6 @@ -21,8 +21,6 @@ ts_init "$*" . "$TS_SELF/utmp_functions.sh" [ $SIZEOF_UTMP -eq 384 ] || ts_skip "utmp struct size $SIZEOF_UTMP" -export LANG=C -export TZ=GMT $TS_CMD_UTMPDUMP $TS_SELF/wtmp-ipv6.$BYTE_ORDER >| $TS_OUTPUT 2>/dev/null ts_finalize -- 2.8.2