Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libgloss/testsuite/config/support.c')
-rw-r--r--libgloss/testsuite/config/support.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/libgloss/testsuite/config/support.c b/libgloss/testsuite/config/support.c
new file mode 100644
index 000000000..2fc7bcc8c
--- /dev/null
+++ b/libgloss/testsuite/config/support.c
@@ -0,0 +1,24 @@
+/*
+ * 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);
+}