[PATCH] D20867: [PCH] Fix timestamp check on windows hosts.

Bruno Cardoso Lopes via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 6 13:40:30 PDT 2016


bruno added inline comments.

================
Comment at: test/PCH/include-timestamp.cpp:8
@@ +7,3 @@
+// RUN: sleep 1
+// RUN: not %clang_cc1 -include-pch %t %s 2>&1 | FileCheck -check-prefix=CHECK-TIMESTAMP %s
+
----------------
pgousseau wrote:
> Without the sleep the test fails for me, as it seems the call to touch does not have time to take effect. It might be something specific to gnuwin32 tools on Windows I am not sure.
What about using more options for `touch`, something like `touch -m -a -t <timestamp> <file>`?


http://reviews.llvm.org/D20867





More information about the cfe-commits mailing list