From 4b2eec1d9df3aa2b678d9582624c39f92ac872ad Mon Sep 17 00:00:00 2001 From: Derek Bruening Date: Wed, 21 Feb 2018 19:07:06 -0500 Subject: [PATCH] i#2845: fix racy nudge_test test output (#2846) Fixes the nudge_test output to not have two "done" message that result in a race in runall.cmake. Issue: #1309 Fixes #2845 --- suite/tests/client-interface/nudge_test.template | 3 +++ suite/tests/win32/infloop.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/suite/tests/client-interface/nudge_test.template b/suite/tests/client-interface/nudge_test.template index a947792c201..149d2665f28 100644 --- a/suite/tests/client-interface/nudge_test.template +++ b/suite/tests/client-interface/nudge_test.template @@ -1,4 +1,7 @@ thank you for testing the client interface nudge delivered 10 nudge delivered 11 +#ifdef WINDOWS +MessageBox closed +#endif done diff --git a/suite/tests/win32/infloop.c b/suite/tests/win32/infloop.c index 46d2c40e780..a20789f89b7 100644 --- a/suite/tests/win32/infloop.c +++ b/suite/tests/win32/infloop.c @@ -54,6 +54,6 @@ main(int argc, const char *argv[]) "Infloop pid=%d", GetProcessId(GetCurrentProcess())); SetTimer(NULL, NULL, 180*1000/*3 mins*/, TimerProc); MessageBoxA(NULL, "DynamoRIO test: will be auto-closed", title, MB_OK); - print("done\n"); + print("MessageBox closed\n"); return 0; }