diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-16 14:10:07 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-16 14:10:07 +0000 |
commit | 67f9b377ba636f5cf645b585d6f84ceba286a4ec (patch) | |
tree | 5fe319226b8411110e6228fff09e28548fd11858 /test/Other | |
parent | e7ff00846244c73836d8ef2fb7f6ffed3c00b60e (diff) | |
download | llvm-67f9b377ba636f5cf645b585d6f84ceba286a4ec.tar.gz llvm-67f9b377ba636f5cf645b585d6f84ceba286a4ec.tar.bz2 llvm-67f9b377ba636f5cf645b585d6f84ceba286a4ec.tar.xz |
Create files with mode 666. This matches the behavior of other unix tools.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186414 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Other')
-rw-r--r-- | test/Other/umask.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Other/umask.ll b/test/Other/umask.ll new file mode 100644 index 0000000000..37f379dcb3 --- /dev/null +++ b/test/Other/umask.ll @@ -0,0 +1,13 @@ +; REQUIRES: shell + +; RUN: umask 000 +; RUN: rm -f %t.000 +; RUN: llvm-as %s -o %t.000 +; RUN: ls -l %t.000 | FileCheck --check-prefix=CHECK000 %s +; CHECK000: rw-rw-rw + +; RUN: umask 002 +; RUN: rm -f %t.002 +; RUN: llvm-as %s -o %t.002 +; RUN: ls -l %t.002 | FileCheck --check-prefix=CHECK002 %s +; CHECK002: rw-rw-r- |