2 * Copyright 2016, Cyril Bur, IBM Corp.
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
9 * Syscalls can be performed provided the transactions are suspended.
10 * The exec() class of syscall is unique as a new process is loaded.
12 * It makes little sense for after an exec() call for the previously
13 * suspended transaction to still exist.
31 static int test_exec(void)
42 execl(path
, "tm-exec", "--child", NULL
);
44 /* Shouldn't get here */
45 perror("execl() failed");
49 static int after_exec(void)
58 FAIL_IF(failure_is_nesting());
62 int main(int argc
, char *argv
[])
66 if (argc
> 1 && strcmp(argv
[1], "--child") == 0)
69 return test_harness(test_exec
, "tm_exec");