[llvm] r341595 - [llvm-strip] Fix -p test to check for explicit spaces around dates, to avoid when the filename happens to contain 1995/1997.

Jordan Rupprecht via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 6 15:34:48 PDT 2018


Author: rupprecht
Date: Thu Sep  6 15:34:48 2018
New Revision: 341595

URL: http://llvm.org/viewvc/llvm-project?rev=341595&view=rev
Log:
[llvm-strip] Fix -p test to check for explicit spaces around dates, to avoid when the filename happens to contain 1995/1997.

Modified:
    llvm/trunk/test/tools/llvm-objcopy/strip-preserve-time.test

Modified: llvm/trunk/test/tools/llvm-objcopy/strip-preserve-time.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/strip-preserve-time.test?rev=341595&r1=341594&r2=341595&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/strip-preserve-time.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/strip-preserve-time.test Thu Sep  6 15:34:48 2018
@@ -60,11 +60,11 @@
 # RUN: ls -l %t-nondwo | FileCheck %s --check-prefix=CHECK-PRESERVE-MTIME
 # RUN: llvm-readobj %t-nondwo
 
-# CHECK-PRESERVE-ATIME:        1995
-# CHECK-PRESERVE-MTIME:        1997
+# CHECK-PRESERVE-ATIME:        {{[[:space:]]1995[[:space:]]}}
+# CHECK-PRESERVE-MTIME:        {{[[:space:]]1997[[:space:]]}}
 
-# CHECK-NO-PRESERVE-ATIME-NOT: 1995
-# CHECK-NO-PRESERVE-MTIME-NOT: 1997
+# CHECK-NO-PRESERVE-ATIME-NOT: {{[[:space:]]1995[[:space:]]}}
+# CHECK-NO-PRESERVE-MTIME-NOT: {{[[:space:]]1997[[:space:]]}}
 
 !ELF
 FileHeader:




More information about the llvm-commits mailing list