Skip to content

Commit

Permalink
Fixed two test bugs found by AddressSanitizer
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Feb 20, 2018
1 parent 33d6b18 commit 7bb9a9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/b6b_test_inet_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ int main()
assert(b6b_interp_new_argv(&interp, 0, NULL, B6B_OPT_TRACE));
assert(b6b_call_copy(&interp,
"{$inet.server tcp 1.2.3.4 2924}",
33) == B6B_ERR);
31) == B6B_ERR);
b6b_interp_destroy(&interp);

assert(b6b_interp_new_argv(&interp, 0, NULL, B6B_OPT_TRACE));
Expand Down
2 changes: 1 addition & 1 deletion tests/b6b_test_un_pair.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ int main()
#endif

assert(b6b_interp_new_argv(&interp, 0, NULL, B6B_OPT_TRACE));
assert(b6b_call_copy(&interp, "{$un.pair}", 35) == B6B_ERR);
assert(b6b_call_copy(&interp, "{$un.pair}", 10) == B6B_ERR);
b6b_interp_destroy(&interp);

assert(b6b_interp_new_argv(&interp, 0, NULL, B6B_OPT_TRACE));
Expand Down

0 comments on commit 7bb9a9e

Please sign in to comment.