# HG changeset patch # User neliasso # Date 1458037026 -3600 # Node ID dc9021790941c0ab77c23257b03d1e32e369398d # Parent 59b58343d3587dc5c0ece790cacf9beb0dd062e4 8151795: compiler/compilercontrol/parser/DirectiveParserTest.java fails with "assert failed: 0 != 0" Summary: Treat zero added directives as fail Reviewed-by: twisti, kvn diff -r 59b58343d358 -r dc9021790941 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;