This is the mail archive of the java-patches@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: bug fix in new test


The new test has a buffering bug.
This fixes it.

2001-01-26  Tom Tromey  <tromey@redhat.com>

	* libjava.jni/martin.c (Java_martin_myNative): Flush stdout.

Tom

Index: martin.c
===================================================================
RCS file: /cvs/gcc/egcs/libjava/testsuite/libjava.jni/martin.c,v
retrieving revision 1.1
diff -u -r1.1 martin.c
--- martin.c	2001/01/26 22:41:41	1.1
+++ martin.c	2001/01/26 22:51:36
@@ -10,6 +10,7 @@
   jmethodID mid;
 
   printf("From C\n");
+  fflush(stdout);
 
   cls = (*env)->FindClass(env, "java/lang/System");
   if (cls == 0) {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]