forked from 0ad/0ad
fix self-test problems exposed by more complete coverage (thanks, Philip!)
refs #294 This was SVN commit r7099.
This commit is contained in:
parent
ad19f2faae
commit
369820c315
@ -175,7 +175,7 @@ public:
|
||||
debug_SkipNextError(ERR::INVALID_PARAM);
|
||||
TEST_CPY(d1,1,0 , EINVAL,""); // src = 0
|
||||
debug_SkipNextError(ERR::INVALID_PARAM);
|
||||
TEST_CPY(d1,0,s1, ERANGE,""); // max_dst_chars = 0
|
||||
TEST_CPY(d1,0,s1, EINVAL,""); // max_dst_chars = 0
|
||||
|
||||
debug_SkipNextError(ERR::BUF_SIZE);
|
||||
TEST_CPY2(d1,1, s1, ERANGE,"");
|
||||
@ -200,9 +200,9 @@ public:
|
||||
debug_SkipNextError(ERR::INVALID_PARAM);
|
||||
TEST_CAT(d1,1,0 , EINVAL,""); // src = 0
|
||||
debug_SkipNextError(ERR::INVALID_PARAM);
|
||||
TEST_CAT(d1,0,s1, ERANGE,""); // max_dst_chars = 0
|
||||
TEST_CAT(d1,0,s1, EINVAL,""); // max_dst_chars = 0
|
||||
debug_SkipNextError(ERR::STRING_NOT_TERMINATED);
|
||||
TEST_CAT(no_null,5,s1, ERANGE,""); // dst not terminated
|
||||
TEST_CAT(no_null,5,s1, EINVAL,""); // dst not terminated
|
||||
|
||||
debug_SkipNextError(ERR::BUF_SIZE);
|
||||
TEST_CAT2(d1,1, s1, "",ERANGE,"");
|
||||
|
Loading…
Reference in New Issue
Block a user