test: cleanup

- u3s_cue_xeno_init_with to after u3m_boot_lite().

- c3__ux for overflow case for more intuitive test output.

- "test boot" in final output.
This commit is contained in:
Jōshin 2021-12-26 22:39:50 +00:00
parent 0682eb8a3a
commit 645b7afbd7
No known key found for this signature in database
GPG Key ID: A8BE5A9A521639D0

View File

@ -9,11 +9,12 @@ _setup(void)
{
c3_d len_d = u3_Ivory_pill_len;
c3_y* byt_y = u3_Ivory_pill;
u3_cue_xeno* sil_u = u3s_cue_xeno_init_with(ur_fib27, ur_fib28);
u3_cue_xeno* sil_u;
u3_weak pil;
u3C.wag_w |= u3o_hashless;
u3m_boot_lite();
sil_u = u3s_cue_xeno_init_with(ur_fib27, ur_fib28);
if ( u3_none == (pil = u3s_cue_xeno_with(sil_u, len_d, byt_y)) ) {
printf("*** fail _setup 1\n");
exit(1);
@ -45,8 +46,8 @@ _test_lily()
printf("*** fail _test_lily-2a\n");
exit(1);
}
cod = u3dc("scot", c3__ud, u3i_word(0x80000000));
if ( c3y == u3v_lily(c3__ud, cod, &lit_l) ) {
cod = u3dc("scot", c3__ux, u3i_word(0x80000000));
if ( c3y == u3v_lily(c3__ux, cod, &lit_l) ) {
printf("*** fail _test_lily-2b\n");
exit(1);
}
@ -61,6 +62,6 @@ main(int argc, char* argv[])
_test_lily();
fprintf(stderr, "test_lilly: ok\n");
fprintf(stderr, "test boot: ok\n");
return 0;
}