aboutsummaryrefslogtreecommitdiff
path: root/helper.c
blob: b2b2a18fdafbc279ca255b27cbe035a0943387d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "libasm_test.h"


void
print_ok(void)
{
	printf("OK: %s\n", test_name);
}

void
print_stack_alignment_error(void)
{
	printf("KO: [STACK ALIGNMENT]: %s\n", test_name);
}

void
print_signaled_ko(void)
{
	printf("KO: [SEGFAULT]: %s\n", test_name);
}

void
expect_int(int expected, int actual)
{
	if (actual != expected)
   		printf("KO:	[COMPARE]: %s: expected: %d got: %d\n", test_name, expected, actual);
	else
		print_ok();
}