summaryrefslogtreecommitdiffstats
path: root/cpukit/libtest/t-test-checks-psx.c
blob: 58e9fb64f52d0f7d6acf6dadfd2532c5ce232e6d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <t.h>

#include <errno.h>

void T_check_psx_error(int a, const T_check_context *t, int eeno)
{
	int aeno;

	aeno = errno;
	T_check_true(a == -1 && aeno == eeno, t, "%i == -1, %s == %s", a,
	    T_strerror(aeno), T_strerror(eeno));
}

void T_check_psx_success(int a, const T_check_context *t)
{
	T_check_true(a == 0, t, "%i == 0, %s", a, T_strerror(errno));
}