1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright 2015, Michael Neuling, IBM Corp.
5 * Edited: Rashmica Gupta, Nov 2015
7 * This test does a fork syscall inside a transaction. Basic sniff test
8 * to see if we can enter the kernel during a transaction.
24 SKIP_IF(htm_is_synthetic());
29 "li 0, 2;" /* fork syscall */
33 : : : "memory", "r0");
34 /* If we reach here, we've passed. Otherwise we've probably crashed
40 int main(int argc
, char *argv
[])
42 return test_harness(test_fork
, "tm_fork");