We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8248da commit a0879f2Copy full SHA for a0879f2
compiler-rt/test/sanitizer_common/TestCases/Posix/variadic-open.cpp
@@ -4,6 +4,7 @@
4
// RUN: %run %t 2
5
6
#include <assert.h>
7
+#include <errno.h>
8
#include <fcntl.h>
9
#include <stdio.h>
10
#include <stdlib.h>
@@ -13,8 +14,11 @@
13
14
15
void test(const char *path, int flags) {
16
int fd = open(path, flags, 0600);
- if (fd == -1)
17
+ if (fd == -1) {
18
perror(path);
19
+ if (errno == EOPNOTSUPP)
20
+ return;
21
+ }
22
assert(fd != -1);
23
struct stat info;
24
int result = fstat(fd, &info);
0 commit comments