source: trunk/libs/newlib/src/libgloss/testsuite/config/support.c @ 668

Last change on this file since 668 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
12int
13fail (str)
14char *str;
15{
16     PRINT ("FAIL: %s\n", str);
17}
18
19int
20pass (str)
21char *str;
22{
23     PRINT ("PASS: %s\n", str);
24}
Note: See TracBrowser for help on using the repository browser.