Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
some new files used to check Tesh
[simgrid.git] / tools / tesh2 / examples / catch-global-timeout.tesh
diff --git a/tools/tesh2/examples/catch-global-timeout.tesh b/tools/tesh2/examples/catch-global-timeout.tesh
new file mode 100644 (file)
index 0000000..15285c4
--- /dev/null
@@ -0,0 +1,11 @@
+#! ./tesh\r
+# This test detects a global timeout\r
+\r
+! expect return $ELEADTIME\r
+\r
+< $ sleep 30\r
+$ ./tesh --log='log.thresh:info tesh.fmt:%m%n' --timeout=3\r
+> Test unit from stdin\r
+> [stdin:1] sleep 30\r
+> Test unit from stdin INTR\r
+> Tesh timed out after `(3)' seconds\r