9cd419d
--- bin/varnishtest/vtc_process.c.orig	2018-04-26 14:12:29.539178105 +0100
9cd419d
+++ bin/varnishtest/vtc_process.c	2018-04-26 15:27:49.851948252 +0100
9cd419d
@@ -216,7 +216,7 @@
9cd419d
 		vtc_dump(p->vl, 4, "stdout", buf, i);
9cd419d
 	else if (p->log == 3)
9cd419d
 		vtc_hexdump(p->vl, 4, "stdout", buf, i);
9cd419d
-	(void)write(p->f_stdout, buf, i);
9cd419d
+	assert(write(p->f_stdout, buf, i) == i);
9cd419d
 	Term_Feed(p->term, buf, buf + i);
9cd419d
 	return (0);
9cd419d
 }
9cd419d
@@ -239,7 +239,7 @@
9cd419d
 	p->stderr_bytes += i;
9cd419d
 	AZ(pthread_mutex_unlock(&p->mtx));
9cd419d
 	vtc_dump(p->vl, 4, "stderr", buf, i);
9cd419d
-	(void)write(p->f_stderr, buf, i);
9cd419d
+	assert(write(p->f_stdout, buf, i) == i);
9cd419d
 	return (0);
9cd419d
 }
9cd419d