Last change
on this file since 658 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
424 bytes
|
Line | |
---|
1 | /* |
---|
2 | * support.c -- minimal support functions. This is to keep the exit code |
---|
3 | * generic enough that pattern matching from expect should be easier. |
---|
4 | */ |
---|
5 | |
---|
6 | #if defined (unix) |
---|
7 | #define PRINT printf /* so we can test on a native system */ |
---|
8 | #else |
---|
9 | #define PRINT iprintf /* this is only in newlib */ |
---|
10 | #endif |
---|
11 | |
---|
12 | int |
---|
13 | fail (str) |
---|
14 | char *str; |
---|
15 | { |
---|
16 | PRINT ("FAIL: %s\n", str); |
---|
17 | } |
---|
18 | |
---|
19 | int |
---|
20 | pass (str) |
---|
21 | char *str; |
---|
22 | { |
---|
23 | PRINT ("PASS: %s\n", str); |
---|
24 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.