Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Last corrections of Tesh tool.
[simgrid.git] / tools / tesh2 / examples / catch-timeout.tesh
index 445c256..8a16fb5 100644 (file)
@@ -1,9 +1,15 @@
-#! ./tesh\r
-\r
-# This suite must be functional because we changed the timeout value to 10\r
-# before sleeping 6 secs.\r
-\r
-! expect return $ECMDTIMEDOUT\r
-< ! timeout 1\r
-< $ sleep 6\r
-$ ./tesh --log="log.thresh:info tesh.fmt:%m%n"\r
+#! ./tesh
+
+# This suite must be functional because we changed the timeout value to 10
+# before sleeping 6 secs.
+
+! expect return $ECMDTIMEDOUT
+< ! timeout 1
+< $ sleep 6
+> Test unit from stdin
+> [stdin:2] sleep 6
+> [stdin:2] `sleep 6' timed out after 1 sec
+> [stdin:2] Kill the process `sleep 6'
+> [stdin:2] No output before timeout
+> Test unit `(stdin)' : NOK (command timed out)
+$ ./tesh --log='log.thresh:info tesh.fmt:%m%n'