[llvm] 136f34f - Fix D-flag.test by running chmod before creating the archive

Alex Richardson via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 2 05:29:33 PST 2020


Author: Alex Richardson
Date: 2020-01-02T14:27:57+01:00
New Revision: 136f34fed661869ebb0082d32f7b5399baca204c

URL: https://github.com/llvm/llvm-project/commit/136f34fed661869ebb0082d32f7b5399baca204c
DIFF: https://github.com/llvm/llvm-project/commit/136f34fed661869ebb0082d32f7b5399baca204c.diff

LOG: Fix D-flag.test by running chmod before creating the archive

Not all systems create the .o file with mode 644 by default.
Adding an explicit chmod invocation should fix this test added in
535b3c6b2f1c81ed91942ebd9ea06a1022dc59a1

Added: 
    

Modified: 
    llvm/test/tools/llvm-ranlib/D-flag.test

Removed: 
    


################################################################################
diff  --git a/llvm/test/tools/llvm-ranlib/D-flag.test b/llvm/test/tools/llvm-ranlib/D-flag.test
index 01714cfe229e..49f52fa743c8 100644
--- a/llvm/test/tools/llvm-ranlib/D-flag.test
+++ b/llvm/test/tools/llvm-ranlib/D-flag.test
@@ -3,6 +3,7 @@
 ## Important: all `llvm-ar tv` calls must use TZ=UTC to produce identical values
 # RUN: yaml2obj %S/../llvm-ar/Inputs/add-lib1.yaml -o %t.o
 # RUN: env TZ=UTC touch -t 200001020304 %t.o
+# RUN: chmod 644 %t.o
 # RUN: rm -f %t.a %t-no-index.a && llvm-ar cqSU %t-no-index.a %t.o
 
 ## Check that the intial listing has real values:


        


More information about the llvm-commits mailing list