Skip to content

Commit b983431

Browse files
authored
[rtsan] Fix issue when intercepted function was not execve in test (#144018)
1 parent 147a4c7 commit b983431

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

compiler-rt/test/rtsan/fork_exec.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ int main() MAYBE_NONBLOCKING {
4545
}
4646

4747
// CHECK-NOHALT: Intercepted call to {{.*}} `fork` {{.*}}
48-
// CHECK-NOHALT: Intercepted call to {{.*}} `execve` {{.*}}
48+
49+
// We should also get some other intercepted call. On some systems this
50+
// is `execve`, on others, it's a lock to set up `execve`. In either
51+
// case, just check that we get a second intercepted call, don't sweat
52+
// the name.
53+
// CHECK-NOHALT: Intercepted call to {{.*}}
4954

5055
// usleep checks that rtsan is still enabled in the parent process
5156
// See note in our interceptors file for why we don't look for `wait`

0 commit comments

Comments
 (0)