From 1f280c4d2561aabf07186e06a5200167203c7db9 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 30 Nov 2016 23:50:43 +0000 Subject: [PATCH] regress: fuzzraw: Tshutdown: Tolerate lack of Tensuresetup If no syscalls were made, Tensuresetup won't have been called. (We don't want to call it because it's what handles the first gettimeofday timestamp, so we need to call it exactly when hplayback.c.m4 calls it.) Signed-off-by: Ian Jackson --- regress/hfuzzraw.c.m4 | 1 + 1 file changed, 1 insertion(+) diff --git a/regress/hfuzzraw.c.m4 b/regress/hfuzzraw.c.m4 index 0ed71a2..339611c 100644 --- a/regress/hfuzzraw.c.m4 +++ b/regress/hfuzzraw.c.m4 @@ -91,6 +91,7 @@ static void Pformat(const char *what) { } extern void Tshutdown(void) { + if (!Tinputfile) return; int c= fgetc(Tinputfile); if (c!=EOF) Pformat("unwanted additional syscall reply data"); if (ferror(Tinputfile)) Tfailed("read test log input (at end)"); -- 2.30.2