diff options
author | Lukas Zaoral <lzaoral@redhat.com> | 2021-09-21 09:37:33 +0200 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2021-10-17 22:32:56 +0100 |
commit | 89f74ea9551f3dbfbf27c6f905d7733b96280571 (patch) | |
tree | a989f058672a3423e9b01ad52d565010e60d076a /test | |
parent | 6e6ca4598bf28944b4c731e131bd223ca0c44cd6 (diff) | |
download | klee-89f74ea9551f3dbfbf27c6f905d7733b96280571.tar.gz |
test/Runtime/POSIX/Futimesat: Compile with -std=c99
.. so that `linux` is not a defined macro. Without the `-std=c99` option, linux is an implicitly defined macro so all such substrings in the given path will be replaced with `1` during stringification. Unfortunately, Fedora's rpmbuild uses `x86_64-redhat-linux-gnu` as a build directory for all CMake projects which leads to a failure due to a change to `x86_64-redhat-1-gnu`. Fixes: #1424
Diffstat (limited to 'test')
-rw-r--r-- | test/Runtime/POSIX/Futimesat.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/Runtime/POSIX/Futimesat.c b/test/Runtime/POSIX/Futimesat.c index 11ecf341..4b059963 100644 --- a/test/Runtime/POSIX/Futimesat.c +++ b/test/Runtime/POSIX/Futimesat.c @@ -1,6 +1,13 @@ // REQUIRES: not-wsl-1 // Disabling WSL 1 because futimesat syscall may be not implemented -// RUN: %clang %s -emit-llvm %O0opt -g -c -DTDIR=%T -o %t2.bc +// +// Without the -std=c99 option, linux is an implicitly defined macro on Linux +// systems so all such substrings in the given path will be replaced with 1 +// during stringification. Unfortunately, Fedora's rpmbuild uses +// x86_64-redhat-linux-gnu as a build directory for all CMake projects which +// leads to a test failure due to an unwanted change to x86_64-redhat-1-gnu. +// +// RUN: %clang %s -std=c99 -emit-llvm %O0opt -g -c -DTDIR=%T -o %t2.bc // RUN: touch %T/futimesat-dummy // RUN: rm -rf %t.klee-out // RUN: %klee --output-dir=%t.klee-out --posix-runtime --exit-on-error %t2.bc --sym-files 1 10 |