libc/libgloss/testsuite/config/support.c

25 lines
424 B
C
Raw Normal View History

2000-03-17 23:48:54 +01:00
/*
* support.c -- minimal support functions. This is to keep the exit code
* generic enough that pattern matching from expect should be easier.
*/
#if defined (unix)
#define PRINT printf /* so we can test on a native system */
#else
#define PRINT iprintf /* this is only in newlib */
#endif
int
fail (str)
char *str;
{
PRINT ("FAIL: %s\n", str);
}
int
pass (str)
char *str;
{
PRINT ("PASS: %s\n", str);
}