X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fsi95_test.c;h=dfa44c3cb41a4124877f2665c3d1ba4b90397988;hb=refs%2Fchanges%2F51%2F4751%2F2;hp=a33e334fc3e2c0dfc53608a9911b00d35564043a;hpb=cc314e0c526a0ed0ce9295e490b3f2bb29c3332c;p=ric-plt%2Flib%2Frmr.git diff --git a/test/si95_test.c b/test/si95_test.c index a33e334..dfa44c3 100644 --- a/test/si95_test.c +++ b/test/si95_test.c @@ -249,9 +249,10 @@ static int conn( ) { errors += fail_if_true( state >= 0, "forced dup connect did not return error" ); tpem_set_addr_dup_state( 0 ); // back to normal - tpem_set_conn_state( 1 ); + tpem_set_conn_state( -1 ); state = SIconnect( si_ctx, "localhost:4567" ); // driver regular connect errors += fail_if_true( state >= 0, "connect to low port successful when failure expected" ); + tpem_set_conn_state( 3 ); tpem_set_sock_state( 1 ); // make scoket calls fail state = SIconnect( si_ctx, "localhost:4567" ); // driver regular connect @@ -405,7 +406,7 @@ int main() { errors += cleanup(); - fprintf( stderr, " si95 tests finished (%d)\n", errors ); + test_summary( errors, "SI95 tests" ); if( errors == 0 ) { fprintf( stderr, " all tests were OK\n\n" ); } else {