LibTestApp: Fix to return correct exit code in ipsec_MB_testapp
@@ -297,9 +297,11 @@ main(int argc, char **argv)
free_mb_mgr(p_mgr);
}
- if (errors)
+ if (errors) {
printf("Test completed: FAIL\n");
- else
+ return EXIT_FAILURE;
+ }
+
printf("Test completed: PASS\n");
return EXIT_SUCCESS;
