Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
change the free function by a free_error function to clean all the tesh errors from...
[simgrid.git] / tools / tesh2 / examples / catch-wrong-output.tesh
index 1356a1e..753d0c7 100644 (file)
@@ -1,16 +1,12 @@
-#! ./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' --silent
+
+
+