From 645b7afbd7b62df0692fa5e157b36b1f019c73bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C5=8Dshin?= Date: Sun, 26 Dec 2021 22:39:50 +0000 Subject: [PATCH] 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. --- pkg/urbit/tests/boot_tests.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/urbit/tests/boot_tests.c b/pkg/urbit/tests/boot_tests.c index fa2b382554..8af17fd5e8 100644 --- a/pkg/urbit/tests/boot_tests.c +++ b/pkg/urbit/tests/boot_tests.c @@ -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; }