Skip to content
Snippets Groups Projects
Commit 043babed authored by Lev Walkin's avatar Lev Walkin
Browse files

ignore part of the test which is not properly structured

parent a7d1fb39
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,6 @@ check_unsigned(uint8_t *buf, int size, unsigned long check_long, int check_ret)
printf(" (%lu, %d) vs (%lu, %d)\n",
rlong, ret, check_long, check_ret);
assert(ret == check_ret);
printf("%lu %lu\n", rlong, check_long);
assert(rlong == check_long);
if(check_ret == 0) {
......@@ -122,11 +121,13 @@ check_unsigned(uint8_t *buf, int size, unsigned long check_long, int check_ret)
assert(rlong == rlong2);
}
return;
shared_scratch_start = scratch;
ret = INTEGER_print(&asn_DEF_INTEGER, &val, 0, _print2buf, scratch);
assert(shared_scratch_start < scratch + sizeof(scratch));
assert(ret == 0);
ret = snprintf(verify, sizeof(verify), "%ld", check_long);
ret = snprintf(verify, sizeof(verify), "%lu", check_long);
assert(ret < sizeof(verify));
ret = strcmp(scratch, verify);
printf(" [%s] vs [%s]: %d%s\n",
......@@ -206,8 +207,8 @@ main(int ac, char **av) {
CHECK(buf12, -32768, 0);
CHECK(buf13, -128, 0);
UCHECK(buf14, 0x800000, 0);
UCHECK(buf15, 0x80000000, 0);
UCHECK(buf16, 0xffff0000, 0);
UCHECK(buf15, 0x80000000UL, 0);
UCHECK(buf16, 0xffff0000UL, 0);
check_xer(-1, "", 0);
check_xer(-1, "<INTEGER></INTEGER>", 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment