8151795: compiler/compilercontrol/parser/DirectiveParserTest.java fails with "assert failed: 0 != 0"
Summary: Treat zero added directives as fail
Reviewed-by: twisti, kvn
--- 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;