We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5aad260 commit 81b798eCopy full SHA for 81b798e
1 file changed
src/test/p21read/p21read.cc
@@ -152,8 +152,8 @@ int main( int argc, char * argv[] ) {
152
sfile.ReadExchangeFile( flnm );
153
sfile.Error().PrintContents( cout );
154
155
- if ( sfile.Error().severity() <= SEVERITY_INCOMPLETE )
156
- exit(1);
+ if ( sfile.Error().severity() < SEVERITY_INCOMPLETE )
+ exit( EXIT_FAILURE );
157
158
checkSchemaName( registry, sfile, ignoreErr );
159
@@ -169,7 +169,7 @@ int main( int argc, char * argv[] ) {
169
170
cout << flnm << " written" << endl;
171
172
- if( ( sfile.Error().severity() <= SEVERITY_INCOMPLETE ) || ( readSev <= SEVERITY_INCOMPLETE ) ) { //lower is worse
173
- exit( 1 );
+ if( sfile.Error().severity() < SEVERITY_INCOMPLETE ) { //lower is worse
174
}
175
0 commit comments