Home
last modified time | relevance | path

Searched refs:tst_res (Results 1 – 25 of 76) sorted by relevance

1234

/external/ltp/testcases/kernel/syscalls/sbrk/
Dsbrk03.c57 tst_res(TINFO, "initial brk: %d", brk((void *)0x10000000)); in sbrk_test()
60 tst_res(TINFO, "sbrk increm: %p", sbrk(0x10000000)); in sbrk_test()
64 tst_res(TINFO, "sbrk increm: %p", sbrk(0x70000000)); in sbrk_test()
68 tst_res(TFAIL, "Bug! sbrk: %p", ret2); in sbrk_test()
72 tst_res(TPASS, "sbrk verify: %p", ret2); in sbrk_test()
74 tst_res(TCONF, "Only works in 32bit on s390 series system"); in sbrk_test()
/external/ltp/testcases/kernel/syscalls/preadv/
Dpreadv02.c92 tst_res(TFAIL, "preadv() succeeded unexpectedly"); in verify_preadv()
97 tst_res(TPASS | TTERRNO, "preadv() failed as expected"); in verify_preadv()
101 tst_res(TFAIL | TTERRNO, "preadv() failed unexpectedly, expected %s", in verify_preadv()
117 tst_res(TWARN | TERRNO, "failed to close file"); in cleanup()
120 tst_res(TWARN | TERRNO, "failed to close file"); in cleanup()
123 tst_res(TWARN | TERRNO, "failed to close file"); in cleanup()
126 tst_res(TWARN | TERRNO, "failed to close file"); in cleanup()
129 tst_res(TWARN | TERRNO, "failed to close file"); in cleanup()
Dpreadv01.c66 tst_res(TFAIL | TTERRNO, "Preadv(2) failed"); in verify_preadv()
71 tst_res(TFAIL, "Preadv(2) read %li bytes, expected %li", in verify_preadv()
82 tst_res(TFAIL, "Buffer wrong at %i have %02x expected %02x", in verify_preadv()
88 tst_res(TFAIL, "Preadv(2) has changed file offset"); in verify_preadv()
92 tst_res(TPASS, "Preadv(2) read %li bytes successfully " in verify_preadv()
112 tst_res(TWARN | TERRNO, "Failed to close file"); in cleanup()
/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl34.c47 tst_res(TINFO, "spawning '%d' threads", thread_cnt); in spawn_threads()
56 tst_res(TINFO, "waiting for '%d' threads", thread_cnt); in wait_threads()
103 tst_res(TINFO, "write to a file inside threads with OFD locks"); in test01()
112 tst_res(TINFO, "verifying file's data"); in test01()
118 tst_res(TFAIL, "unexpected data read"); in test01()
126 tst_res(TFAIL, "unexpected data read"); in test01()
134 tst_res(TFAIL, "corrupted data found"); in test01()
140 tst_res(TPASS, "OFD locks synchronized access between threads"); in test01()
/external/ltp/testcases/kernel/syscalls/creat/
Dcreat01.c64 tst_res(TFAIL, "creat() failed to truncate file to 0 bytes"); in verify_creat()
66 tst_res(TPASS, "creat() truncated file to 0 bytes"); in verify_creat()
69 tst_res(TFAIL | TERRNO, "write was unsuccessful"); in verify_creat()
71 tst_res(TPASS, "file was created and written to successfully"); in verify_creat()
74 tst_res(TFAIL, "read succeeded unexpectedly"); in verify_creat()
76 tst_res(TPASS | TERRNO, "read failed expectedly"); in verify_creat()
Dcreat05.c43 tst_res(TFAIL, "call succeeded unexpectedly"); in verify_creat()
49 tst_res(TPASS, "creat() failed with EMFILE"); in verify_creat()
51 tst_res(TFAIL | TTERRNO, "Expected EMFILE"); in verify_creat()
62 tst_res(TINFO, "getdtablesize() = %d", max_open); in setup()
72 tst_res(TINFO, "Opened additional #%d fds", num_opened_fds); in setup()
81 tst_res(TWARN | TERRNO, "close(%i) failed", in cleanup()
Dcreat03.c43 tst_res(TFAIL | TERRNO, "creat(%s) failed", pfilname); in verify_creat()
49 tst_res(TINFO, "Created file has mode = 0%o", statbuf.st_mode); in verify_creat()
52 tst_res(TFAIL, "save text bit not cleared"); in verify_creat()
54 tst_res(TPASS, "save text bit cleared"); in verify_creat()
/external/ltp/testcases/kernel/syscalls/syscall/
Dsyscall01.c41 tst_res(TPASS, "getpid() == syscall(SYS_getpid)"); in verify_getpid()
43 tst_res(TFAIL, "getpid() = %i, syscall(SYS_getpid) = %i", in verify_getpid()
56 tst_res(TPASS, "getuid() == syscall(SYS_getuid)"); in verify_getuid()
58 tst_res(TFAIL, "getuid() = %i, syscall(SYS_getuid) = %i", in verify_getuid()
71 tst_res(TPASS, "getgid() == syscall(SYS_getgid)"); in verify_getgid()
73 tst_res(TFAIL, "getgid() = %i, syscall(SYS_getgid) = %i", in verify_getgid()
/external/ltp/testcases/kernel/syscalls/pwritev/
Dpwritev02.c87 tst_res(TFAIL, "pwritev() succeeded unexpectedly"); in verify_pwritev()
92 tst_res(TPASS | TTERRNO, "pwritev() failed as expected"); in verify_pwritev()
96 tst_res(TFAIL | TTERRNO, "pwritev() failed unexpectedly, expected %s", in verify_pwritev()
111 tst_res(TWARN | TERRNO, "failed to close file"); in cleanup()
114 tst_res(TWARN | TERRNO, "failed to close file"); in cleanup()
117 tst_res(TWARN | TERRNO, "failed to close file"); in cleanup()
120 tst_res(TWARN | TERRNO, "failed to close file"); in cleanup()
Dpwritev01.c64 tst_res(TFAIL | TTERRNO, "pwritev() failed"); in verify_pwritev()
69 tst_res(TFAIL, "pwritev() wrote %li bytes, expected %li", in verify_pwritev()
75 tst_res(TFAIL, "pwritev() had changed file offset"); in verify_pwritev()
87 tst_res(TFAIL, "buffer wrong at %i have %02x expected 61", in verify_pwritev()
92 tst_res(TPASS, "writev() wrote %li bytes successfully " in verify_pwritev()
106 tst_res(TWARN | TERRNO, "failed to close file"); in cleanup()
/external/ltp/testcases/commands/mail/
Dmail_tests.sh116 tst_res TFAIL $LTPTMP/tst_mail.out \
130 tst_res TFAIL $LTPTMP/tst_mail.res \
159 tst_res TFAIL $LTPTMP/tst_mail.out \
203 tst_res TFAIL $LTPTMP/tst_mail.res \
213 tst_res TFAIL $LTPTMP/tst_mail.res \
240 tst_res TFAIL $LTPTMP/tst_mail.out \
279 tst_res TFAIL $LTPTMP/tst_mail.res \
288 tst_res TFAIL $LTPTMP/tst_mail.res \
307 tst_res TFAIL $LTPTMP/tst_mail.out \
323 tst_res TFAIL $LTPTMP/tst_mail.res \
[all …]
/external/ltp/testcases/kernel/syscalls/pipe/
Dpipe03.c35 tst_res(TFAIL | TTERRNO, "pipe() failed unexpectedly"); in verify_pipe()
41 tst_res(TPASS | TTERRNO, "expected failure writing " in verify_pipe()
44 tst_res(TFAIL | TTERRNO, "unexpected failure writing " in verify_pipe()
50 tst_res(TPASS | TTERRNO, "expected failure reading " in verify_pipe()
53 tst_res(TFAIL | TTERRNO, "unexpected failure reading " in verify_pipe()
Dpipe02.c62 tst_res(TFAIL|TERRNO, "pipe() failed"); in verify_pipe()
81 tst_res(TFAIL, "pipe read data and pipe " in verify_pipe()
91 tst_res(TFAIL, "Child wasn't killed by signal"); in verify_pipe()
95 tst_res(TFAIL, "Child killed by %s expected SIGPIPE", in verify_pipe()
98 tst_res(TPASS, "Child killed by SIGPIPE"); in verify_pipe()
Dpipe01.c39 tst_res(TFAIL | TTERRNO, "pipe()"); in verify_pipe()
47 tst_res(TFAIL, "read() returned %d, expected %d", in verify_pipe()
53 tst_res(TFAIL, "Wrong data were read back"); in verify_pipe()
60 tst_res(TPASS, "pipe() functionality is correct"); in verify_pipe()
/external/ltp/testcases/commands/tpm-tools/tpmtoken/tpmtoken_import/
Dtpmtoken_import_tests.sh110 tst_res TFAIL $TPM_TMPFILE "'tpmtoken_import -n $TCID $TPM_COMBFILE' failed."
128 tst_res TFAIL $TPM_TMPFILE "'tpmtoken_import -n $TCID $TPM_COMBFILE' failed."
146 tst_res TFAIL $TPM_TMPFILE "'tpmtoken_import -y -n $TCID $TPM_COMBFILE' failed."
164 tst_res TFAIL $TPM_TMPFILE "'tpmtoken_import -p -n $TCID $TPM_COMBFILE' failed."
182 tst_res TFAIL $TPM_TMPFILE "'tpmtoken_import -p -n $TCID $TPM_COMBFILE' failed."
200 tst_res TFAIL $TPM_TMPFILE "'tpmtoken_import -y -p -n $TCID $TPM_COMBFILE' failed."
218 tst_res TFAIL $TPM_TMPFILE "'tpmtoken_import -n $TCID $TPM_CERTFILE' failed."
236 tst_res TFAIL $TPM_TMPFILE "'tpmtoken_import -n $TCID $TPM_KEYFILE' failed."
255 tst_res TFAIL $TPM_TMPFILE "'tpmtoken_import -t key -n $TCID $TPM_CERTFILE' failed."
274 tst_res TFAIL $TPM_TMPFILE "'tpmtoken_import -t cert -n $TCID $TPM_KEYFILE' failed."
/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise06.c57 tst_res(TINFO, "dst_max = %ld", dst_max); in setup()
97 tst_res(TINFO, "PageFault(no madvice): %d", get_page_fault_num()); in test_advice_willneed()
105 tst_res(TINFO, "PageFault(madvice / no mem access): %d", in test_advice_willneed()
110 tst_res(TINFO, "PageFault(madvice / mem access): %d", in test_advice_willneed()
114 tst_res(TFAIL, "Bug has been reproduced"); in test_advice_willneed()
116 tst_res(TPASS, "Regression test pass"); in test_advice_willneed()
/external/ltp/testcases/kernel/syscalls/epoll_ctl/
Depoll_ctl01.c63 tst_res(TWARN | TERRNO, "failed to close epoll instance"); in cleanup()
66 tst_res(TWARN | TERRNO, "failed to close pipe"); in cleanup()
69 tst_res(TWARN | TERRNO, "failed to close pipe"); in cleanup()
104 tst_res(TFAIL, "epoll_wait() returns %i, expected %i", in check_epoll_ctl()
112 tst_res(TFAIL, "epoll_wait() fails to " in check_epoll_ctl()
121 tst_res(TFAIL, "epoll_wait() fails to " in check_epoll_ctl()
127 tst_res(TPASS, "epoll_ctl() succeeds with op %i", opt); in check_epoll_ctl()
Depoll_ctl02.c91 tst_res(TWARN | TERRNO, "failed to close epoll instance"); in cleanup()
94 tst_res(TWARN | TERRNO, "failed to close pipe"); in cleanup()
97 tst_res(TWARN | TERRNO, "failed to close pipe"); in cleanup()
106 tst_res(TFAIL, "epoll_ctl() succeeds unexpectedly"); in verify_epoll_ctl()
111 tst_res(TPASS | TTERRNO, "epoll_ctl() fails as expected"); in verify_epoll_ctl()
113 tst_res(TFAIL | TTERRNO, in verify_epoll_ctl()
/external/ltp/lib/newlib_tests/
Dtest08.c33 tst_res(TINFO, "setup() executed"); in setup()
44 tst_res(TINFO, "cleanup() started"); in cleanup()
46 tst_res(TINFO, "cleanup() finished"); in cleanup()
51 tst_res(TINFO, "Thread %ld waiting...", (long)id); in worker()
65 tst_res(TINFO, "Joining thread %li", i); in do_test()
Dtest05.c27 tst_res(TINFO, "setup() executed by pid %i", getpid()); in setup()
32 tst_res(TINFO, "cleanup() executed by pid %i", getpid()); in cleanup()
41 tst_res(TPASS, "Child (%i) reports", getpid()); in do_test()
44 tst_res(TPASS, "Parent (%i) reports", getpid()); in do_test()
Dtest07.c27 tst_res(TINFO, "setup() executed by pid %i", getpid()); in setup()
32 tst_res(TINFO, "cleanup() executed by pid %i", getpid()); in cleanup()
41 tst_res(TPASS, "Child (%i)", getpid()); in do_test()
/external/ltp/testcases/kernel/syscalls/recvmsg/
Drecvmsg02.c84 tst_res(TFAIL | TERRNO, "recvmsg(..., MSG_PEEK)"); in verify_recvmsg()
88 tst_res(TINFO, "received %d bytes", R); in verify_recvmsg()
91 tst_res(TPASS, "recvmsg(..., MSG_PEEK) works fine"); in verify_recvmsg()
93 tst_res(TPASS, "recvmsg(..., MSG_PEEK) failed"); in verify_recvmsg()
102 tst_res(TWARN | TERRNO, "close(sdw) failed"); in cleanup()
105 tst_res(TWARN | TERRNO, "close(sdr) failed"); in cleanup()
/external/ltp/testcases/network/xinetd/
Dxinetd_tests.sh228 tst_res TINFO $LTPTMP/tst_xinetd.err \
239 tst_res TINFO $LTPTMP/tst_xinetd.err \
298 tst_res TFAIL $LTPTMP/tst_xinetd.out \
308 tst_res TFAIL $LTPTMP/tst_xinetd.err \
329 tst_res TFAIL $LTPTMP/tst_xinetd.err.ipv6 \
342 tst_res TFAIL $LTPTMP/tst_xinetd.err \
367 tst_res TFAIL $LTPTMP/tst_xinetd.out \
376 tst_res TFAIL $LTPTMP/tst_xinetd.err \
396 tst_res TFAIL $LTPTMP/tst_xinetd.err.ipv6 \
412 tst_res TFAIL $LTPTMP/tst_xinetd.err \
/external/ltp/testcases/kernel/fs/linktest/
Dlinktest.sh33 tst_res TBROK "" "usage: $0 {softlink count} {hardlink count}"
41 tst_res TBROK "" 'Failed to create $TMPDIR'
53 cd "$TMPDIR" || tst_res TBROK "" "Failed to cd to $TMPDIR"
82 tst_res $RTYPE "" "$prefix_msg Link Errors: $lerrors"
/external/ltp/testcases/kernel/syscalls/llistxattr/
Dllistxattr01.c85 tst_res(TFAIL | TERRNO, "llistxattr() failed"); in verify_llistxattr()
90 tst_res(TFAIL, "get file attribute %s unexpectlly", in verify_llistxattr()
96 tst_res(TFAIL, "missing attribute %s", SECURITY_KEY2); in verify_llistxattr()
100 tst_res(TPASS, "llistxattr() succeeded"); in verify_llistxattr()

1234