diff --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/posix_spawn.c b/compiler-rt/test/sanitizer_common/TestCases/Posix/posix_spawn.c index d99fbd52ffcd..eebcf473c63f 100644 --- a/compiler-rt/test/sanitizer_common/TestCases/Posix/posix_spawn.c +++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/posix_spawn.c @@ -16,8 +16,14 @@ int main(int argc, char **argv) { posix_spawnattr_t attr = {}; posix_spawn_file_actions_t file_actions = {}; - char *const args[] = {argv[0], "2", NULL}; - char *const env[] = {"A=B", NULL}; + char *const args[] = { + argv[0], "2", "3", "4", "2", "3", "4", "2", "3", "4", + "2", "3", "4", "2", "3", "4", "2", "3", "4", NULL, + }; + char *const env[] = { + "A=B", "A=B", "A=B", "A=B", "A=B", "A=B", "A=B", "A=B", "A=B", "A=B", + "A=B", "A=B", "A=B", "A=B", "A=B", "A=B", "A=B", "A=B", "A=B", NULL, + }; pid_t pid; int s = posix_spawn(&pid, argv[0], &file_actions, &attr, args, env);