diff options
author | Christos Zoulas <christos@zoulas.com> | 2023-01-24 20:37:05 +0000 |
---|---|---|
committer | Christos Zoulas <christos@zoulas.com> | 2023-01-24 20:37:05 +0000 |
commit | 450cd68864827b97f791c8eb4b0a7fdbbdea768c (patch) | |
tree | b3b8731582a45ea52043d977b5bbcf67e9c8ce54 | |
parent | b0973be4946b0e689e15812c8fa1a17ad889e03f (diff) | |
download | file-git-450cd68864827b97f791c8eb4b0a7fdbbdea768c.tar.gz |
PR/416: thesamesam: make sure tests are ran in UTC.
-rw-r--r-- | tests/test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test.c b/tests/test.c index a942ba5c..b3c2a85b 100644 --- a/tests/test.c +++ b/tests/test.c @@ -30,6 +30,7 @@ #include <unistd.h> #include <string.h> #include <errno.h> +#include <time.h> #include "magic.h" @@ -84,6 +85,9 @@ main(int argc, char **argv) int e = EXIT_FAILURE, flags, c; FILE *fp; + setenv("TZ", "UTC", 1); + tzset(); + prog = strrchr(argv[0], '/'); if (prog) |