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 fail(str)13fail (str) 14 char *str; 15 { 16 PRINT ("FAIL: %s\n", str); 17 } 18 19 int pass(str)20pass (str) 21 char *str; 22 { 23 PRINT ("PASS: %s\n", str); 24 } 25