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.
28 "li 0, 2;" /* fork syscall */
32 : : : "memory", "r0");
33 /* If we reach here, we've passed. Otherwise we've probably crashed
39 int main(int argc
, char *argv
[])
41 return test_harness(test_fork
, "tm_fork");