1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 2016, Cyril Bur, IBM Corp.
5 * Syscalls can be performed provided the transactions are suspended.
6 * The exec() class of syscall is unique as a new process is loaded.
8 * It makes little sense for after an exec() call for the previously
9 * suspended transaction to still exist.
27 static int test_exec(void)
38 execl(path, "tm-exec", "--child", NULL);
40 /* Shouldn't get here */
41 perror("execl() failed");
45 static int after_exec(void)
54 FAIL_IF(failure_is_nesting());
58 int main(int argc, char *argv[])
62 if (argc > 1 && strcmp(argv[1], "--child") == 0)
65 return test_harness(test_exec, "tm_exec");