From: Ben Langmuir Date: Fri, 1 Aug 2014 22:58:19 +0000 (+0000) Subject: Fix test from r214577 for other timezones X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a95ae2c1b9a9c1a81ead106b2d757a250e0d4ce9;p=clang Fix test from r214577 for other timezones Unsurprisingly, changing a file modification time to a specific date/time doesn't give the same epoch time everywhere. Just make the file move into the past and look at only the first few digits of the epoch time. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214589 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/modules.m b/test/Driver/modules.m index 141269cda2..fbd41d8e7d 100644 --- a/test/Driver/modules.m +++ b/test/Driver/modules.m @@ -8,11 +8,11 @@ // NOFILE: no such file or directory: 'doesntexist' // REQUIRES: shell -// RUN: touch -m -a -t 201408011501 %t.build-session-file +// RUN: touch -m -a -t 201008011501 %t.build-session-file // RUN: %clang -fbuild-session-file=%t.build-session-file -### %s 2>&1 | FileCheck -check-prefix=TIMESTAMP_ONLY %s -// RUN: %clang -fbuild-session-timestamp=1406930460 -### %s 2>&1 | FileCheck -check-prefix=TIMESTAMP_ONLY %s -// TIMESTAMP_ONLY: -fbuild-session-timestamp=1406930460 +// RUN: %clang -fbuild-session-timestamp=1280703457 -### %s 2>&1 | FileCheck -check-prefix=TIMESTAMP_ONLY %s +// TIMESTAMP_ONLY: -fbuild-session-timestamp=128 // RUN: %clang -fbuild-session-file=%t.build-session-file -fbuild-session-timestamp=123 -### %s 2>&1 | FileCheck -check-prefix=CONFLICT %s // CONFLICT: error: invalid argument '-fbuild-session-file={{.*}}.build-session-file' not allowed with '-fbuild-session-timestamp' @@ -22,7 +22,7 @@ // MODULES_VALIDATE_ONCE: -fmodules-validate-once-per-build-session // RUN: %clang -fbuild-session-file=%t.build-session-file -fmodules-validate-once-per-build-session -### %s 2>&1 | FileCheck -check-prefix=MODULES_VALIDATE_ONCE_FILE %s -// MODULES_VALIDATE_ONCE_FILE: -fbuild-session-timestamp=1406930460 +// MODULES_VALIDATE_ONCE_FILE: -fbuild-session-timestamp=128 // MODULES_VALIDATE_ONCE_FILE: -fmodules-validate-once-per-build-session // RUN: %clang -fmodules-validate-once-per-build-session -### %s 2>&1 | FileCheck -check-prefix=MODULES_VALIDATE_ONCE_ERR %s