summaryrefslogtreecommitdiff
path: root/tests/README
diff options
context:
space:
mode:
Diffstat (limited to 'tests/README')
-rw-r--r--tests/README9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/README b/tests/README
index cce2924..fa3c0bf 100644
--- a/tests/README
+++ b/tests/README
@@ -9,3 +9,12 @@ Usage: runtest cl|gcc testname
"gcc" calls the GNU gcc compiler/linker
"testname" is the name of the C source file without the .c
+Tests written in this test suite should behave in the following manner:
+
+ * If a test fails, leave main() with a result of 1.
+
+ * If a test succeeds, leave main() with a result of 0.
+
+ * No diagnostic output should appear when the test is succeeding.
+ Diagnostic output may be emitted if something in the test
+ fails, to help determine the cause of the test failure.