This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
Patch: bug fix in new test
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: bug fix in new test
- From: Tom Tromey <tromey at redhat dot com>
- Date: 26 Jan 2001 16:17:38 -0700
- Reply-To: tromey at redhat dot com
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) {