chiark / gitweb /
test: Provide bgerror
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 11 Oct 2019 19:14:49 +0000 (20:14 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 12 Oct 2019 22:29:26 +0000 (23:29 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
test/invoke

index 592053243caa036d7110f62f1b7f7522a538ae47..98a7ea1187380370bd67187505d1762d1135e641 100755 (executable)
@@ -121,6 +121,21 @@ proc netlink-readable {which} {
     }
 }
 
+proc bgerror {message} {
+    global errorInfo errorCode
+    catch {
+       puts stderr "
+----------------------------------------
+$errorInfo
+
+$errorCode
+$message
+----------------------------------------
+    "
+    }
+    exit 1
+}
+
 spawn-secnet inside
 spawn-secnet outside