[compiler-rt] 1429204 - [NFC][sanitizer] Debug errno in test
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 22 18:39:46 PDT 2024
Author: Vitaly Buka
Date: 2024-09-22T18:39:35-07:00
New Revision: 1429204352ec758c98a60e3d22773973e234615b
URL: https://github.com/llvm/llvm-project/commit/1429204352ec758c98a60e3d22773973e234615b
DIFF: https://github.com/llvm/llvm-project/commit/1429204352ec758c98a60e3d22773973e234615b.diff
LOG: [NFC][sanitizer] Debug errno in test
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 81696680c549ea..648a1af76bc60b 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Posix/variadic-open.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/variadic-open.cpp
@@ -16,6 +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)
return;
}
More information about the llvm-commits
mailing list