Lines Matching refs:thiscase
533 static testcase *thiscase; variable
614 flock.l_type = thiscase->c_type; in dochild()
615 flock.l_whence = thiscase->c_whence; in dochild()
616 flock.l_start = thiscase->c_start; in dochild()
617 flock.l_len = thiscase->c_len; in dochild()
633 if ((thiscase->c_flag) == NOBLOCK) { in dochild()
642 if (flock.l_whence != thiscase->c_whence) { in dochild()
646 flock.l_whence, thiscase->c_whence); in dochild()
650 if (flock.l_start != thiscase->c_start) { in dochild()
655 (int64_t) thiscase->c_start); in dochild()
659 if (flock.l_len != thiscase->c_len) { in dochild()
664 (int64_t) thiscase->c_len); in dochild()
684 if (flock.l_type != thiscase->a_type) { in dochild()
689 thiscase->a_type); in dochild()
700 flock.l_type = thiscase->c_type; in dochild()
701 flock.l_whence = thiscase->c_whence; in dochild()
702 flock.l_start = thiscase->c_start; in dochild()
703 flock.l_len = thiscase->c_len; in dochild()
707 if ((thiscase->c_flag) == NOBLOCK) { in dochild()
716 if ((thiscase->c_flag) == WILLBLOCK) { in dochild()
791 thiscase = &testcases[test]; in run_test()
792 flock.l_type = thiscase->a_type; in run_test()
793 flock.l_whence = thiscase->a_whence; in run_test()
794 flock.l_start = thiscase->a_start; in run_test()
795 flock.l_len = thiscase->a_len; in run_test()
805 if ((thiscase->b_type) != SKIP) { in run_test()
806 flock.l_type = thiscase->b_type; in run_test()
807 flock.l_whence = thiscase->b_whence; in run_test()
808 flock.l_start = thiscase->b_start; in run_test()
809 flock.l_len = thiscase->b_len; in run_test()
819 if ((thiscase->c_type) == SKIP) { in run_test()
833 if (self_exec(argv0, "nddddddddd", 2, thiscase->c_type, in run_test()
834 thiscase->c_whence, thiscase->c_start, in run_test()
835 thiscase->c_len, thiscase->c_flag, in run_test()
836 thiscase->a_type, fd, test, parent) < 0) { in run_test()
847 if ((thiscase->c_flag) == WILLBLOCK) { in run_test()
950 thiscase = malloc(sizeof(testcase)); in main()
952 maybe_run_child(&dochild, "nddddddddd", 2, &thiscase->c_type, in main()
953 &thiscase->c_whence, &thiscase->c_start, in main()
954 &thiscase->c_len, &thiscase->c_flag, &thiscase->a_type, in main()
1061 thiscase = &testcases[58]; in main()
1062 flock.l_type = thiscase->a_type; in main()
1063 flock.l_whence = thiscase->a_whence; in main()
1064 flock.l_start = thiscase->a_start; in main()
1065 flock.l_len = thiscase->a_len; in main()
1084 if (self_exec(argv0, "nddddddddd", 2, thiscase->c_type, in main()
1085 thiscase->c_whence, thiscase->c_start, in main()
1086 thiscase->c_len, thiscase->c_flag, in main()
1087 thiscase->a_type, fd, test, parent) < 0) { in main()