74#define TL_PENDING 1024
76#define TL_GUARD_LO 0x544C7374UL
77#define TL_GUARD_HI 0x7473544CUL
111#define TL_RUN_TEXT 1024
157 const uint8_t *actual,
size_t actual_length);
189 size_t n, uint32_t
size);
ULONG WORD UWORD UWORD border ULONG ULONG struct bb_bitmap *dst void UWORD n
Definition 2dlib.c:2498
UWORD size
Definition 2dlib.c:1170
char * name
Definition asllib.c:150
@ BASICTEST_BLOCK_CASE
Definition basictest.h:89
@ BASICTEST_BLOCK_INIT
Definition basictest.h:88
@ BASICTEST_BLOCK_FINAL
Definition basictest.h:90
BL_ALWAYS_INLINE void block(const struct bb_shape *shape, const struct bb_bitmap *bm, UBYTE *cb, WORD x, WORD y)
Definition blitlib.c:241
static ULONG length(const UBYTE *s)
Definition filereq_core.c:280
static struct @116141142274037024203205202074071112317221044374 st
uint32_t length
Definition tlcore.h:122
uint8_t chars[TL_RUN_TEXT+2]
Definition tlcore.h:123
int32_t rc
Definition tlcore.h:114
uint32_t size
Definition tlcore.h:117
int16_t rcknown
Definition tlcore.h:115
int16_t cut
Definition tlcore.h:116
const uint8_t * printed
Definition tlcore.h:118
The state of the library; all of it between two guard words.
Definition tlcore.h:84
uint32_t guard_lo
Definition tlcore.h:85
uint8_t init_line[TL_LINE]
Definition tlcore.h:98
size_t init_length
Definition tlcore.h:95
uint8_t phase
Definition tlcore.h:89
size_t pending_length
Definition tlcore.h:96
uint8_t lost
Definition tlcore.h:92
uint8_t line[TL_LINE]
Definition tlcore.h:97
uint8_t open
Definition tlcore.h:88
uint8_t pending[TL_PENDING]
Definition tlcore.h:99
uint8_t dead
Definition tlcore.h:87
uint32_t init_broken_k
Definition tlcore.h:94
uint8_t init_broken
Definition tlcore.h:91
uint8_t damaged
Definition tlcore.h:93
uint8_t init_failed
Definition tlcore.h:90
uint32_t guard_hi
Definition tlcore.h:100
uint8_t begun
Definition tlcore.h:86
void tl_os_write(const uint8_t *data, size_t length)
Definition testlib.c:160
#define TL_RUN_TEXT
Definition tlcore.h:111
void tl_check(struct tl_state *st, uint32_t k, uint32_t expected, uint32_t actual)
A check of two longs: ok if they are equal.
Definition tlcore.c:241
void tl_run_end(struct tl_state *st, uint32_t k, struct tl_run *r, struct tl_run_text *t, int known, int32_t rc, size_t n, uint32_t size)
The program ended (after tl_run_start gave 1): its output's first n bytes are in t->chars (n <= TL_RU...
Definition tlcore.c:405
int tl_os_fltnear(uint32_t expected, uint32_t actual, uint32_t delta)
Definition testlib.c:174
#define TL_LINE
Definition tlcore.h:73
void tl_checkq(struct tl_state *st, uint32_t k, uint32_t expected, uint32_t actual)
A check of two quicks (their 32 bits): ok if they are equal.
Definition tlcore.c:258
void tl_finit(struct tl_state *st)
The end of the run: kept entries, incomplete if a block is open, end.
Definition tlcore.c:357
int tl_block(struct tl_state *st, int block, const uint8_t *name, size_t length)
Opens a block (block: enum basictest_block; name and length: the case name, ignored for the batch ini...
Definition tlcore.c:176
void tl_expect_error(struct tl_state *st, uint32_t k)
The announcement of an expected runtime error.
Definition tlcore.c:346
int tl_run_start(struct tl_state *st, uint32_t k, struct tl_run *r, struct tl_run_text *t)
A program is to start (TLRunProgram): the result r and its text t cleared (rc 0, unknown,...
Definition tlcore.c:385
void tl_blockend(struct tl_state *st)
Closes the open block.
Definition tlcore.c:221
void tl_checkflt(struct tl_state *st, uint32_t k, uint32_t expected, uint32_t actual, uint32_t delta)
A check of two FFP floats: ok if |actual-expected| <= delta.
Definition tlcore.c:275
void tl_begin(struct tl_state *st)
Clears the state and writes begin.
Definition tlcore.c:155
int tl_require(struct tl_state *st, uint32_t k, uint32_t condition)
A precondition.
Definition tlcore.c:326
int tl_os_can_write(void)
Definition testlib.c:166
@ TL_FINAL
Definition tlcore.h:81
@ TL_NONE
Definition tlcore.h:80
@ TL_CASE
Definition tlcore.h:80
@ TL_INIT
Definition tlcore.h:80
void tl_checkstr(struct tl_state *st, uint32_t k, const uint8_t *expected, size_t expected_length, const uint8_t *actual, size_t actual_length)
A check of two strings (bytes): ok if they are equal.
Definition tlcore.c:298
#define TL_PENDING
Definition tlcore.h:74