summaryrefslogtreecommitdiff
path: root/ccan/breakpoint/test/run.c
blob: b36e9c228cb12f158648ae547c21df07bc29b292 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <ccan/breakpoint/breakpoint.h>
#include <ccan/breakpoint/breakpoint.c>
#include <ccan/tap/tap.h>

int main(void)
{
	/* This is how many tests you plan to run */
	plan_tests(2);

	breakpoint();

	ok1(breakpoint_initialized);
	ok1(!breakpoint_under_debug);

	/* This exits depending on whether all tests passed */
	return exit_status();
}