[compiler-rt] 81c3499 - [NFC][sanitizer] Skip test if O_TMPFILE EINVAL on some FS

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 22 18:47:03 PDT 2024


Author: Vitaly Buka
Date: 2024-09-22T18:46:58-07:00
New Revision: 81c3499531c3fe03827bd8bc890e3a16db9e4c3c

URL: https://github.com/llvm/llvm-project/commit/81c3499531c3fe03827bd8bc890e3a16db9e4c3c
DIFF: https://github.com/llvm/llvm-project/commit/81c3499531c3fe03827bd8bc890e3a16db9e4c3c.diff

LOG: [NFC][sanitizer] Skip test if O_TMPFILE EINVAL on some FS

Added: 
    

Modified: 
    compiler-rt/test/sanitizer_common/TestCases/Posix/variadic-open.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/variadic-open.cpp b/compiler-rt/test/sanitizer_common/TestCases/Posix/variadic-open.cpp
index 648a1af76bc60b..1811c4a1fd90a8 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Posix/variadic-open.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/variadic-open.cpp
@@ -16,8 +16,7 @@ void test(const char *path, int flags) {
   int fd = open(path, flags, 0600);
   if (fd == -1) {
     perror(path);
-    fprintf(stderr, "\n%d\n", errno);
-    if (errno == EOPNOTSUPP)
+    if (errno == EOPNOTSUPP || errno == EINVAL)
       return;
   }
   assert(fd != -1);


        


More information about the llvm-commits mailing list