static int test3() { RETINFO_t retval; /* contains test stats information */ tst_resm(TINFO, "test3: Test case tests the race condition between " "simultaneous COW faults in the same address space."); map_and_thread("./tmp.file.3", thread_fault, COW_FAULT, NUMTHREAD, &retval); return (retval.status); }
static int test1() { RETINFO_t retval; /* contains info relating to test status */ tst_resm(TINFO, "test1: Test case tests the race condition between " "simultaneous read faults in the same address space."); map_and_thread("./tmp.file.1", thread_fault, READ_FAULT, NUMTHREAD, &retval); return (retval.status); }
static int test4() { RETINFO_t retval; /* contains test status information */ tst_resm(TINFO, "test4: Test case tests the race condition between " "simultaneous READ faults in the same address space. " "The file mapped is /dev/zero"); map_and_thread("/dev/zero", thread_fault, COW_FAULT, NUMTHREAD, &retval); return (retval.status); }