--- /dev/null
+#! ./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