diff options
author | Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> | 2020-01-02 14:27:32 +0100 |
---|---|---|
committer | Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> | 2020-01-02 14:27:57 +0100 |
commit | 136f34fed661869ebb0082d32f7b5399baca204c (patch) | |
tree | 30ba4b850f096b9647bb7953c9cada74d5390ba5 | |
parent | bdf4224f9cef5fda34eebd409562e9e06bfde982 (diff) | |
download | bcm5719-llvm-136f34fed661869ebb0082d32f7b5399baca204c.tar.gz bcm5719-llvm-136f34fed661869ebb0082d32f7b5399baca204c.zip |
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
-rw-r--r-- | llvm/test/tools/llvm-ranlib/D-flag.test | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-ranlib/D-flag.test b/llvm/test/tools/llvm-ranlib/D-flag.test index 01714cfe229..49f52fa743c 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: |