Lines Matching defs:test
25 * File locking test cases for fcntl. In Linux, S_ENFMT is not implemented
27 * S_ISGID. So this test defines S_ENFMT as S_ISGID.
30 * Various test cases are used to lock a file opened without mandatory
50 #include "test.h"
349 /* Start of negative L_start and L_len test cases */
538 static int test;
597 tst_resm(TFAIL, "Test case %d, errno = %d", test + 1, errno);
629 tst_resm(TFAIL, "Test case %d, errno = %d", test + 1, errno);
637 "%d was expected", test + 1,
645 "should have remained %d", test + 1,
654 test + 1, (int64_t) flock.l_start,
663 test + 1, (int64_t) flock.l_len,
671 "should have remained 0", test + 1,
680 test + 1, flock.l_pid, parent);
688 test + 1, flock.l_type,
711 test + 1, errno);
763 test + 1, errno);
781 for (test = start; test < end; test++) {
791 thiscase = &testcases[test];
801 test + 1, errno);
815 test + 1, errno);
821 tst_resm(TINFO, "skipping test %d", test + 1);
836 thiscase->a_type, fd, test, parent) < 0) {
875 test + 1, errno);
895 tst_resm(TFAIL, "testcase:%d FAILED", test + 1);
897 tst_resm(TPASS, "testcase:%d PASSED", test + 1);
955 &fd, &test, &parent);
974 testcheck_end(fail, "Block 1, test 1");
978 testcheck_end(fail, "Block 1, test 2");
984 * Skip block2 if test on NFS, since NFS does not support
997 testcheck_end(fail, "Block 2, test 1");
1002 testcheck_end(fail, "Block 2, test 2");
1087 thiscase->a_type, fd, test, parent) < 0) {
1126 tst_resm(TFAIL, "Test case %d, errno = %d", test + 1,