chiark / gitweb /
regression tests: Properly handle adnshost et al exit status
[adns.git] / regress / hcommon.c.m4
index 760ca0c0bbd4fdd84704b643ab329baa0912b2f8..62b2d03a0f81cc64b53795b7e77fd79d925d230c 100644 (file)
@@ -311,7 +311,7 @@ void *Hrealloc(void *op, size_t nsz) {
   return np;
 }
 
-void Hexit(int rv) {
+void Texit(int rv) {
   struct malloced *loopnode;
 
   Tshutdown();
@@ -327,6 +327,13 @@ void Hexit(int rv) {
   exit(rv);
 }
 
+void Hexit(int rv) {
+  vb.used= 0;
+  Tvbf("exit %d", rv);
+  Q_vb();
+  Texit(0);
+}
+
 pid_t Hgetpid(void) {
   return 2264; /* just some number */
 }