diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-03-11 15:19:10 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-03-11 15:19:10 -0500 |
commit | 74bd445d659bd619d76e109f7b02bb7714eed95f (patch) | |
tree | 74660ea96deedd74993b4e4e3a69f5430c4eb852 | |
parent | 486ddbcdd9281683ab1ade83c5c4a7aac8175aa7 (diff) | |
download | bfs-74bd445d659bd619d76e109f7b02bb7714eed95f.tar.xz |
tests: Run everything in UTC
-rwxr-xr-x | tests.sh | 3 | ||||
-rw-r--r-- | tests/test_printf_times.out | 6 |
2 files changed, 5 insertions, 4 deletions
@@ -4,6 +4,7 @@ set -o physical umask 022 export LC_ALL=C +export TZ=UTC # The temporary directory that will hold our test data TMP="$(mktemp -d "${TMPDIR:-/tmp}"/bfs.XXXXXXXXXX)" @@ -977,7 +978,7 @@ function test_printf_escapes() { } function test_printf_times() { - TZ=UTC bfs_diff times -type f -printf '%p | %a %AY-%Am-%Ad %AH:%AI:%AS %T@ | %t %TY-%Tm-%Td %TH:%TI:%TS %T@\n' + bfs_diff times -type f -printf '%p | %a %AY-%Am-%Ad %AH:%AI:%AS %T@ | %t %TY-%Tm-%Td %TH:%TI:%TS %T@\n' } function test_printf_leak() { diff --git a/tests/test_printf_times.out b/tests/test_printf_times.out index ddaef7d..7e7d256 100644 --- a/tests/test_printf_times.out +++ b/tests/test_printf_times.out @@ -1,3 +1,3 @@ -times/a | Sat Dec 14 05:00:00.0000000000 1991 1991-12-14 05:05:00.0000000000 692686800.0000000000 | Sat Dec 14 05:00:00.0000000000 1991 1991-12-14 05:05:00.0000000000 692686800.0000000000 -times/b | Sat Dec 14 05:01:00.0000000000 1991 1991-12-14 05:05:00.0000000000 692686860.0000000000 | Sat Dec 14 05:01:00.0000000000 1991 1991-12-14 05:05:00.0000000000 692686860.0000000000 -times/c | Sat Dec 14 05:02:00.0000000000 1991 1991-12-14 05:05:00.0000000000 692686920.0000000000 | Sat Dec 14 05:02:00.0000000000 1991 1991-12-14 05:05:00.0000000000 692686920.0000000000 +times/a | Sat Dec 14 00:00:00.0000000000 1991 1991-12-14 00:12:00.0000000000 692668800.0000000000 | Sat Dec 14 00:00:00.0000000000 1991 1991-12-14 00:12:00.0000000000 692668800.0000000000 +times/b | Sat Dec 14 00:01:00.0000000000 1991 1991-12-14 00:12:00.0000000000 692668860.0000000000 | Sat Dec 14 00:01:00.0000000000 1991 1991-12-14 00:12:00.0000000000 692668860.0000000000 +times/c | Sat Dec 14 00:02:00.0000000000 1991 1991-12-14 00:12:00.0000000000 692668920.0000000000 | Sat Dec 14 00:02:00.0000000000 1991 1991-12-14 00:12:00.0000000000 692668920.0000000000 |