8151795: compiler/compilercontrol/parser/DirectiveParserTest.java fails with "assert failed: 0 != 0"
authorneliasso
Tue, 15 Mar 2016 11:17:06 +0100
changeset 36607 dc9021790941
parent 36605 59b58343d358
child 36608 f8bb5522b4e4
8151795: compiler/compilercontrol/parser/DirectiveParserTest.java fails with "assert failed: 0 != 0" Summary: Treat zero added directives as fail Reviewed-by: twisti, kvn
hotspot/src/share/vm/compiler/directivesParser.cpp
--- a/hotspot/src/share/vm/compiler/directivesParser.cpp	Mon Mar 14 17:51:25 2016 +0100
+++ b/hotspot/src/share/vm/compiler/directivesParser.cpp	Tue Mar 15 11:17:06 2016 +0100
@@ -97,7 +97,7 @@
       buffer[num_read] = '\0';
       // close file
       os::close(file_handle);
-      return parse_string(buffer, stream) != -1;
+      return parse_string(buffer, stream) > 0;
     }
   }
   return false;