forked from wolfSSL/wolfssl
fix github issue #126
api tests refectory with ifdef and prototypes cleaning + use of asserts. Now, if the tests fails, it will point the line error and expected behavior like this: ERROR - tests/api.c line 715 failed with: test: server_args.return_code is true result: server_args.return_code => FALSE
This commit is contained in:
1691
tests/api.c
1691
tests/api.c
File diff suppressed because it is too large
Load Diff
@@ -41,10 +41,7 @@ int unit_test(int argc, char** argv)
|
|||||||
ChangeDirBack(3);
|
ChangeDirBack(3);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ( (ret = ApiTest()) != 0) {
|
ApiTest();
|
||||||
printf("api test failed with %d\n", ret);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( (ret = HashTest()) != 0){
|
if ( (ret = HashTest()) != 0){
|
||||||
printf("hash test failed with %d\n", ret);
|
printf("hash test failed with %d\n", ret);
|
||||||
|
@@ -55,7 +55,7 @@
|
|||||||
#define AssertStrLE(x, y) AssertStr(x, y, <=, >)
|
#define AssertStrLE(x, y) AssertStr(x, y, <=, >)
|
||||||
|
|
||||||
|
|
||||||
int ApiTest(void);
|
void ApiTest(void);
|
||||||
int SuiteTest(void);
|
int SuiteTest(void);
|
||||||
int HashTest(void);
|
int HashTest(void);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user