summaryrefslogtreecommitdiffstats
path: root/tests/openpgp/fake-pinentry.c
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2016-10-20 16:50:11 +0200
committerJustus Winter <justus@g10code.com>2016-10-20 17:01:24 +0200
commitca9597f080f70a8435daaeb5449bef0462a1402a (patch)
tree573e34111f2b4ba0ed17a0ca0e497174d4c003a3 /tests/openpgp/fake-pinentry.c
parentcommon,w32: Fix setting environment variables on Windows. (diff)
downloadgnupg2-ca9597f080f70a8435daaeb5449bef0462a1402a.tar.xz
gnupg2-ca9597f080f70a8435daaeb5449bef0462a1402a.zip
tests: Flush stdout in the fake pinentry.
* tests/openpgp/fake-pinentry.c (reply): Flush stdout. Fixes-commit: 94504b3d5af126abb591dedda1ca0f0970822f55 Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to 'tests/openpgp/fake-pinentry.c')
-rw-r--r--tests/openpgp/fake-pinentry.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/openpgp/fake-pinentry.c b/tests/openpgp/fake-pinentry.c
index 6ef612661..ce897650d 100644
--- a/tests/openpgp/fake-pinentry.c
+++ b/tests/openpgp/fake-pinentry.c
@@ -42,6 +42,7 @@ reply (const char *fmt, ...)
result = vprintf (fmt, ap);
va_end (ap);
+ fflush (stdout);
return result;
}