[pkg-opensc-commit] [pkcs11-helper] 02/44: mingw fixups

Eric Dorland eric at moszumanska.debian.org
Fri Jan 6 23:40:11 UTC 2017


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to tag pkcs11-helper-1.06
in repository pkcs11-helper.

commit 9541c8d29000b788106cfa0fb88d9958b30e3647
Author: alonbl <alonbl at 485eb718-1723-0410-b8a9-88cf21a28c35>
Date:   Tue Oct 23 09:18:30 2007 +0000

    mingw fixups
---
 tests/test-basic/test-basic.c             | 1 +
 tests/test-certificate/test-certificate.c | 7 ++++++-
 tests/test-slotevent/test-slotevent.c     | 2 ++
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/tests/test-basic/test-basic.c b/tests/test-basic/test-basic.c
index bda479b..9eee3aa 100644
--- a/tests/test-basic/test-basic.c
+++ b/tests/test-basic/test-basic.c
@@ -20,6 +20,7 @@ _pkcs11h_hooks_log (
 ) {
 	vfprintf (stdout, format, args);
 	fprintf (stdout, "\n");
+	fflush (stdout);
 }
 
 int main () {
diff --git a/tests/test-certificate/test-certificate.c b/tests/test-certificate/test-certificate.c
index 67a0ec4..6811777 100644
--- a/tests/test-certificate/test-certificate.c
+++ b/tests/test-certificate/test-certificate.c
@@ -2,8 +2,11 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#if defined(_WIN32)
+#include <conio.h>
+#endif
 
-#if !(!defined(_WIN32) && defined(ENABLE_PKCS11H_CERTIFICATE) && (defined(ENABLE_PKCS11H_ENGINE_OPENSSL) || defined (ENABLE_PKCS11H_ENGINE_GNUTLS) || defined(ENABLE_PKCS11H_ENGINE_WIN32)))
+#if !(defined(ENABLE_PKCS11H_CERTIFICATE) && (defined(ENABLE_PKCS11H_ENGINE_OPENSSL) || defined (ENABLE_PKCS11H_ENGINE_GNUTLS) || defined(ENABLE_PKCS11H_ENGINE_WIN32)))
 int main () {
 	printf ("!win32, certificate, enum and crypto engine interfaces should be enabled for this test");
 	exit (0);
@@ -27,6 +30,7 @@ mypause (const char * const m) {
 	char temp[10];
 
 	fprintf (stdout, "%s", m);
+	fflush (stdout);
 	fgets (temp, sizeof (temp), stdin);
 }
 
@@ -40,6 +44,7 @@ _pkcs11h_hooks_log (
 ) {
 	vfprintf (stdout, format, args);
 	fprintf (stdout, "\n");
+	fflush (stdout);
 }
 
 static
diff --git a/tests/test-slotevent/test-slotevent.c b/tests/test-slotevent/test-slotevent.c
index 4e8fff7..cb5e686 100644
--- a/tests/test-slotevent/test-slotevent.c
+++ b/tests/test-slotevent/test-slotevent.c
@@ -32,6 +32,7 @@ mypause (const char * const m) {
 	char temp[10];
 
 	fprintf (stdout, "%s", m);
+	fflush (stdout);
 	fgets (temp, sizeof (temp), stdin);
 }
 
@@ -45,6 +46,7 @@ _pkcs11h_hooks_log (
 ) {
 	vfprintf (stdout, format, args);
 	fprintf (stdout, "\n");
+	fflush (stdout);
 }
 
 static

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/pkcs11-helper.git



More information about the pkg-opensc-commit mailing list