[sanitizer] Improve FreeBSD ASLR detection
[llvm-project.git] / llvm / test / tools / llvm-ifs / fail-file-write.test
blobd5232070c1d03a95ca51ae89fc253dd968b330e8
1 ## Test failing to write output file on non-windows platforms.
3 # UNSUPPORTED: system-windows
4 # RUN: rm -rf %t.TestDir
5 # RUN: mkdir %t.TestDir
6 # RUN: touch %t.TestDir/Output.TestFile
7 # RUN: chmod 400 %t.TestDir
8 # RUN: not llvm-ifs --output-elf=%t.TestDir/Output.TestFile %s 2>&1 | FileCheck -DMSG=%errc_EACCES %s --check-prefix=ERR
9 # RUN: chmod 777 %t.TestDir
10 # RUN: rm -rf %t.TestDir
12 --- !ifs-v1
13 IfsVersion: 3.0
14 Target: { ObjectFormat: ELF, Arch: AArch64, Endianness: little, BitWidth: 64 }
15 Symbols: []
16 ...
18 # ERR: [[MSG]] when trying to open `{{.*}}.TestDir/Output.TestFile` for writing