summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/if.stp
blob: fa4da54d0b0952a583f2595a0fc1cf134d4bc2ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * if.stp
 *
 * Check the systemtap if statement works
 */

probe begin { println("systemtap starting probe") }

probe end
{
	println("systemtap ending probe")
	if (1) {
		println("systemtap test success");
	} else {
		println("systemtap test failure");
	}
	if (0) {
		println("systemtap test failure");
	} else {
		println("systemtap test success");
	}
}