Lines Matching defs:expect
896 struct flock expect[4];
917 memcpy(expect, lock, sizeof(lock));
942 expect[i].l_pid = pid[i];
946 qsort(expect, __arraycount(expect), sizeof(expect[0]), &flock_compare);
970 ATF_CHECK_EQ(nlocks, __arraycount(expect));
975 ATF_CHECK_EQ(result[j].l_start, expect[j].l_start );
976 ATF_CHECK_EQ(result[j].l_len, expect[j].l_len );
977 ATF_CHECK_EQ(result[j].l_pid, expect[j].l_pid );
978 ATF_CHECK_EQ(result[j].l_type, expect[j].l_type );
979 ATF_CHECK_EQ(result[j].l_whence, expect[j].l_whence);