Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Only for Debug
[simgrid.git] / tools / tesh2 / examples / catch-wrong-output.tesh
index 1356a1e..b4179ac 100644 (file)
@@ -1,16 +1,16 @@
-#! ./tesh\r
-\r
-p This tests whether TESH detects wrong outputs\r
-\r
-! expect return 2\r
-< > TOTO\r
-< < TUTU\r
-< $ cat\r
-$ ./tesh --log="log.thresh:info tesh.fmt:%m%n"\r
-> Test suite from stdin\r
-> [stdin:3] cat\r
-> Output of <stdin:3> mismatch:\r
-> - TOTO\r
-> + TUTU\r
-> Test suite `(stdin)': NOK (<stdin:3> output mismatch)\r
-\r
+#! ./tesh
+
+p This tests whether TESH detects wrong outputs
+
+! expect return $EOUTPUTNOTMATCH
+< > TOTO
+< < TUTU
+< $ cat
+$ tesh --log="log.thresh:info tesh.fmt:%m%n"
+> Test unit from stdin
+> [stdin:3] cat
+> [stdin:3] `cat' : NOK (outputs mismatch):
+> - TOTO
+> + TUTU
+> Test unit `stdin': NOK (<stdin:3> output mismatch)
+