/* post_cases_fail.c -- a table of cases for the boot to fail on. * docs/v4.0.0/MESH.md step 6b, acceptance 4; v4/Makefile, hosted-check. * * Linked into a hosted program in the place of v4/system/post_cases.c, so * that the boot itself (v4/system/boot.c) is seen to stop on a failing * case, to keep what a case prints off the console, and to hold no more of * it than it has room for. It is not a test program of its own: the suite * does not build it. */ #include "v4/post.h" static const char *const l_right[] = { "5 DUP . . CR" }; static const char *const l_wrong[] = { "5 DUP . . CR" }; static const char *const l_many[] = { ": MANY 2000 0 DO 81 EMIT LOOP ;", "MANY" }; static const char *const l_two[] = { "65 EMIT", "66 EMIT" }; const v4_post_case v4_post_cases[] = { { "fail.right", l_right, 1u, V4_POST_STACK, 0, 0u, "5 5 \012", 5u }, { "fail.wrong", l_wrong, 1u, V4_POST_STACK, 0, 0u, "5 6 \012", 5u }, { "fail.many", l_many, 2u, V4_POST_STACK, 0, 0u, "Q", 1u }, { "fail.twoline", l_two, 2u, V4_POST_STACK, 0, 0u, "AB", 2u }, }; const unsigned v4_post_case_count = 4u;