Skip to content

Commit 81b798e

Browse files
committed
p21read shouldn't quit for errors
1 parent 5aad260 commit 81b798e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/test/p21read/p21read.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ int main( int argc, char * argv[] ) {
152152
sfile.ReadExchangeFile( flnm );
153153
sfile.Error().PrintContents( cout );
154154

155-
if ( sfile.Error().severity() <= SEVERITY_INCOMPLETE )
156-
exit(1);
155+
if ( sfile.Error().severity() < SEVERITY_INCOMPLETE )
156+
exit( EXIT_FAILURE );
157157

158158
checkSchemaName( registry, sfile, ignoreErr );
159159

@@ -169,7 +169,7 @@ int main( int argc, char * argv[] ) {
169169
sfile.Error().PrintContents( cout );
170170
cout << flnm << " written" << endl;
171171

172-
if( ( sfile.Error().severity() <= SEVERITY_INCOMPLETE ) || ( readSev <= SEVERITY_INCOMPLETE ) ) { //lower is worse
173-
exit( 1 );
172+
if( sfile.Error().severity() < SEVERITY_INCOMPLETE ) { //lower is worse
173+
exit( EXIT_FAILURE );
174174
}
175175
}

0 commit comments

Comments
 (0)