Index: bin/varnishtest/vtc.c
===================================================================
--- bin/varnishtest/vtc.c	(revision 5515)
+++ bin/varnishtest/vtc.c	(working copy)
@@ -536,6 +536,7 @@
 	(void)x;
 	alrm_flag = 1;
 	vtc_error = 1;
+	pthread_cancel(vtc_thread);
 }
 #endif
 
