File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler-rt/test/asan/TestCases/Posix Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
// Check handle_bus flag
2
2
// Defaults to true
3
3
// RUN: %clangxx_asan -std=c++11 %s -o %t
4
- // RUN: not %run %t %T/file 2>&1 | FileCheck %s -check-prefix=CHECK-BUS
5
- // RUN: %env_asan_opts=handle_sigbus=0 not --crash %run %t %T/file 2>&1 | FileCheck %s
4
+ // RUN: not %run %t 2>&1 | FileCheck %s -check-prefix=CHECK-BUS
5
+ // RUN: %env_asan_opts=handle_sigbus=0 not --crash %run %t 2>&1 | FileCheck %s
6
6
7
7
// UNSUPPORTED: ios
8
8
12
12
#include < stdlib.h>
13
13
#include < sys/mman.h>
14
14
#include < unistd.h>
15
+ #include < string>
15
16
16
17
char array[4096 ];
17
18
int main (int argc, char **argv) {
18
- assert (argc > 1 );
19
- int fd = open (argv[1 ], O_RDWR | O_CREAT, 0700 );
19
+ int fd = open ((std::string (argv[0 ]) + " .m" ).c_str (), O_RDWR | O_CREAT, 0700 );
20
20
if (fd < 0 ) {
21
21
perror (" open" );
22
22
exit (1 );
You can’t perform that action at this time.
0 commit comments