blob: 1567f0cfb65b5f251df7824a861a1edca81bc527 (
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
30
31
32
33
34
|
/* Wrapper around module API so we can run/test it on non-RO machines */
#ifndef __riscos__
#include <stdio.h>
#include "header.h"
int main(int argc, char **argv)
{
_kernel_oserror *error;
if (argc != 1) {
printf("Usage: %s\n", argv[0]);
return 1;
}
error = mod_init(NULL, 0, NULL);
if (error != NULL) {
printf("mod_init: %s (%d)\n", error->errmess, error->errnum);
return 1;
}
error = mod_fini(0, 0, NULL);
if (error != NULL) {
printf("mod_fini: %s (%d)\n", error->errmess, error->errnum);
return 1;
}
return 0;
}
#endif
|