Lines Matching refs:tst_resm
259 tst_resm(TINFO, "TEST: nonblock read"); in test_read_nonblock()
266 tst_resm(TPASS, "non-block read returned EAGAIN"); in test_read_nonblock()
268 tst_resm(TFAIL|TTERRNO, "non-block read returned: %ld", in test_read_nonblock()
277 tst_resm(TINFO, "TEST: blocking read"); in test_read_block()
284 tst_resm(TPASS, "read blocked"); in test_read_block()
286 tst_resm(TFAIL|TTERRNO, "read returned: %ld", TEST_RETURN); in test_read_block()
295 tst_resm(TINFO, "TEST: partial read"); in test_partial_read()
302 tst_resm(TPASS|TTERRNO, "read failed as expected"); in test_partial_read()
304 tst_resm(TFAIL, "read returned: %ld", TEST_RETURN); in test_partial_read()
315 tst_resm(TINFO, "TEST: injected messages appear in /dev/kmsg"); in test_inject()
326 tst_resm(TFAIL|TERRNO, "inject failed"); in test_inject()
332 tst_resm(TFAIL, "failed to find: %s", imsg); in test_inject()
338 tst_resm(TFAIL, "failed to parse seqid: %s", tmp); in test_inject()
342 tst_resm(TFAIL, "facility 0 found: %s", tmp); in test_inject()
350 tst_resm(TFAIL, "seqno doesn't grow: %lu, " in test_inject()
356 tst_resm(TPASS, "injected messages found in log"); in test_inject()
357 tst_resm(TPASS, "sequence numbers grow as expected"); in test_inject()
371 tst_resm(TINFO, "TEST: mult. readers will get same first message"); in test_read_returns_first_message()
380 tst_resm(TFAIL, "failed to find any message"); in test_read_returns_first_message()
382 tst_resm(TFAIL, "failed to parse seqid: %s", in test_read_returns_first_message()
392 tst_resm(TINFO, "msg overwritten, retrying"); in test_read_returns_first_message()
394 tst_resm(TFAIL|TTERRNO, "read failed"); in test_read_returns_first_message()
402 tst_resm(TWARN, "exceeded: %d attempts", NUM_READ_RETRY); in test_read_returns_first_message()
410 tst_resm(TPASS, "all readers got same message on first read"); in test_read_returns_first_message()
412 tst_resm(TFAIL, "readers got different messages"); in test_read_returns_first_message()
414 tst_resm(TINFO, "msg%d: %lu\n", i, seqno[i]); in test_read_returns_first_message()
427 tst_resm(TINFO, "TEST: read returns EPIPE when messages get " in test_messages_overwritten()
435 tst_resm(TINFO, "first seqno: %lu", first_seqno); in test_messages_overwritten()
443 tst_resm(TFAIL, "failed to get first seq. number"); in test_messages_overwritten()
448 tst_resm(TINFO, "first seqno now: %lu", seqno); in test_messages_overwritten()
461 tst_resm(TPASS, "read failed with EPIPE as expected"); in test_messages_overwritten()
463 tst_resm(TFAIL|TTERRNO, "read returned: %ld", TEST_RETURN); in test_messages_overwritten()
466 tst_resm(TINFO, "TEST: Subsequent reads() will return available " in test_messages_overwritten()
469 tst_resm(TFAIL|TTERRNO, "read returned: %ld", TEST_RETURN); in test_messages_overwritten()
471 tst_resm(TPASS, "after EPIPE read returned next record"); in test_messages_overwritten()
483 tst_resm(TINFO, "TEST: seek SEEK_SET 0"); in test_seek()
500 tst_resm(TFAIL, "failed to parse seqid: %s", in test_seek()
504 tst_resm(TFAIL|TERRNO, in test_seek()
524 tst_resm(TWARN, "exceeded: %d attempts", NUM_READ_RETRY); in test_seek()
527 tst_resm(TFAIL, "SEEK_SET 0"); in test_seek()
529 tst_resm(TPASS, "SEEK_SET 0"); in test_seek()
533 tst_resm(TINFO, "TEST: seek SEEK_END 0"); in test_seek()
535 tst_resm(TFAIL|TERRNO, "lseek SEEK_END 0 failed"); in test_seek()
537 tst_resm(TPASS, "SEEK_END 0"); in test_seek()
539 tst_resm(TFAIL, "SEEK_END 0 found: %s", msg); in test_seek()
543 tst_resm(TINFO, "TEST: seek SEEK_DATA 0"); in test_seek()
549 tst_resm(TFAIL|TERRNO, "lseek SEEK_DATA 0 failed"); in test_seek()
551 tst_resm(TPASS, "SEEK_DATA 0"); in test_seek()
553 tst_resm(TFAIL, "SEEK_DATA 0 found: %s", msg); in test_seek()