1 /* Test for sys_padconf() */
5 #include <minix/syslib.h>
6 #include <minix/padconf.h>
7 #include <minix/drivers.h>
10 static unsigned int failures
= 0;
13 * padconf is only supported on ARM. On other systems sys_padconf() should
14 * return -EBADREQUEST.
16 static void test_badrequest(void)
21 r
= sys_padconf(0xffffffff, 0xffffffff, 0xffffffff);
22 if (r
!= -EBADREQUEST
) {
23 printf("Expected r=%d | Got r=%d\n", -EBADREQUEST
, r
);
30 static void do_tests(void)
35 static int sef_cb_init_fresh(int UNUSED(type
), sef_init_info_t
*UNUSED(info
))
39 /* The returned code will determine the outcome of the RS call, and
40 * thus the entire test. The actual error code does not matter.
42 return (failures
) ? EINVAL
: 0;
45 static void sef_local_startup(void)
47 sef_setcb_init_fresh(sef_cb_init_fresh
);
52 int main(int argc
, char **argv
)
54 env_setargs(argc
, argv
);