Lines Matching refs:ATF_REQUIRE
107 ATF_REQUIRE(_lwp_create(&d->context, 0, &d->lwpid) == 0);
119 ATF_REQUIRE(_lwp_wait(d->lwpid, NULL) == 0);
127 ATF_REQUIRE((pid = fork()) != -1);
146 ATF_REQUIRE(waitpid(d->child, &status, 0) == d->child);
147 ATF_REQUIRE(WIFEXITED(status));
148 ATF_REQUIRE(WEXITSTATUS(status) == 0);
158 ATF_REQUIRE(d->stack_base != MAP_FAILED);
197 ATF_REQUIRE(bs_verify_buffer != NULL);
200 ATF_REQUIRE(pread(bs_fd, bs_verify_buffer,
211 ATF_REQUIRE(bs_pagesize > 0);
215 ATF_REQUIRE(bs_source_buffer != NULL);
218 ATF_REQUIRE(bs_fd != -1);
220 ATF_REQUIRE(pwrite(bs_fd, bs_source_buffer,
222 ATF_REQUIRE(verify_zero_bs());
227 ATF_REQUIRE(bs_addr != MAP_FAILED);
362 ATF_REQUIRE(LOAD(futex_ptr) == 1);
377 ATF_REQUIRE(LOAD(error_ptr) == -1);
385 ATF_REQUIRE(__futex(futex_ptr, FUTEX_WAKE | flags,
397 ATF_REQUIRE(LOAD(error_ptr) == 0);
410 ATF_REQUIRE(LOAD(futex_ptr) == 2);
423 ATF_REQUIRE(LOAD(futex_ptr) == 4);
426 ATF_REQUIRE(LOAD(error_ptr) == EAGAIN);
519 ATF_REQUIRE(! verify_zero_bs());
538 ATF_REQUIRE(verify_zero_bs());
557 ATF_REQUIRE(! verify_zero_bs());
581 ATF_REQUIRE(verify_zero_bs());
665 ATF_REQUIRE(_lwp_create(&wlwp0->context, 0, &wlwp0->lwpid) == 0);
666 ATF_REQUIRE(_lwp_create(&wlwp1->context, 0, &wlwp1->lwpid) == 0);
678 ATF_REQUIRE(wlwp0->futex_error == -1);
679 ATF_REQUIRE(wlwp1->futex_error == -1);
687 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE_BITSET | flags,
691 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE_BITSET | flags,
707 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE_BITSET | flags,
718 ATF_REQUIRE(nlwps_running == 1);
719 ATF_REQUIRE(wlwp0->futex_error == 0);
720 ATF_REQUIRE(_lwp_wait(wlwp0->lwpid, NULL) == 0);
723 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE_BITSET | flags,
734 ATF_REQUIRE(nlwps_running == 0);
735 ATF_REQUIRE(wlwp1->futex_error == 0);
736 ATF_REQUIRE(_lwp_wait(wlwp1->lwpid, NULL) == 0);
781 ATF_REQUIRE(_lwp_create(&wlwp0->context, 0, &wlwp0->lwpid) == 0);
782 ATF_REQUIRE(_lwp_create(&wlwp1->context, 0, &wlwp1->lwpid) == 0);
783 ATF_REQUIRE(_lwp_create(&wlwp2->context, 0, &wlwp2->lwpid) == 0);
784 ATF_REQUIRE(_lwp_create(&wlwp3->context, 0, &wlwp3->lwpid) == 0);
796 ATF_REQUIRE(wlwp0->futex_error == -1);
797 ATF_REQUIRE(wlwp1->futex_error == -1);
798 ATF_REQUIRE(wlwp2->futex_error == -1);
799 ATF_REQUIRE(wlwp3->futex_error == -1);
828 ATF_REQUIRE(__futex(&futex_word, op | flags,
849 ATF_REQUIRE(__futex(&futex_word1, op | flags,
858 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE | flags,
862 ATF_REQUIRE(__futex(&futex_word1, FUTEX_WAKE | flags,
876 ATF_REQUIRE(_lwp_wait(wlwp0->lwpid, NULL) == 0);
877 ATF_REQUIRE(_lwp_wait(wlwp1->lwpid, NULL) == 0);
878 ATF_REQUIRE(_lwp_wait(wlwp2->lwpid, NULL) == 0);
879 ATF_REQUIRE(_lwp_wait(wlwp3->lwpid, NULL) == 0);
934 ATF_REQUIRE(futex_word1 == 0);
939 ATF_REQUIRE(futex_word == 0);
945 ATF_REQUIRE(futex_word == 0);
948 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE_OP | flags,
950 ATF_REQUIRE(futex_word1 == 1);
953 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE_OP | flags,
955 ATF_REQUIRE(futex_word1 == 2);
958 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE_OP | flags,
960 ATF_REQUIRE(futex_word1 == 2);
968 ATF_REQUIRE(futex_word1 == 2);
972 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE_OP | flags,
974 ATF_REQUIRE(futex_word1 == (int)0x80000002);
978 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE_OP | flags,
980 ATF_REQUIRE(futex_word1 == 2);
983 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE_OP | flags,
985 ATF_REQUIRE(futex_word1 == 0);
1019 ATF_REQUIRE(_lwp_create(&lwp_data[i].context, 0,
1034 ATF_REQUIRE(lwp_data[i].futex_error == -1);
1044 ATF_REQUIRE(_lwp_wait(lwp_data[i].lwpid, NULL) == 0);
1065 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE_OP | flags,
1067 ATF_REQUIRE(futex_word1 == 0);
1070 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE_OP | flags,
1072 ATF_REQUIRE(futex_word1 == 1);
1076 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE_OP | flags,
1078 ATF_REQUIRE(futex_word1 == 1);
1081 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE_OP | flags,
1083 ATF_REQUIRE(futex_word1 == 2);
1087 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE_OP | flags,
1089 ATF_REQUIRE(futex_word1 == 2);
1092 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE_OP | flags,
1094 ATF_REQUIRE(futex_word1 == 2);
1098 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE_OP | flags,
1100 ATF_REQUIRE(futex_word1 == 1);
1103 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE_OP | flags,
1105 ATF_REQUIRE(futex_word1 == 1);
1109 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE_OP | flags,
1111 ATF_REQUIRE(futex_word1 == 3);
1114 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE_OP | flags,
1116 ATF_REQUIRE(futex_word1 == 2);
1120 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE_OP | flags,
1122 ATF_REQUIRE(futex_word1 == 3);
1125 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE_OP | flags,
1127 ATF_REQUIRE(futex_word1 == 2);
1152 ATF_REQUIRE(futex_word == 0);
1154 ATF_REQUIRE(__futex(&futex_word1, FUTEX_WAKE_OP | flags,
1156 ATF_REQUIRE(futex_word == 0);
1201 ATF_REQUIRE(clock_gettime(clock, &deadline) == 0);
1217 ATF_REQUIRE(clock_gettime(clock, &ts) == 0);
1218 ATF_REQUIRE(ts.tv_sec >= deadline.tv_sec);
1219 ATF_REQUIRE(ts.tv_sec > deadline.tv_sec ||
1285 ATF_REQUIRE(old_act != SIG_ERR);
1294 ATF_REQUIRE(_lwp_create(&lwp_data[0].context, 0,
1307 ATF_REQUIRE(lwp_data[0].futex_error == -1);
1313 ATF_REQUIRE(_lwp_kill(lwp_data[0].threadid, SIGUSR1) == 0);
1350 ATF_REQUIRE(_sched_getparam(getpid(), d->threadid, &policy, &sp) == 0);
1353 ATF_REQUIRE(_sched_setparam(getpid(), d->threadid, policy, &sp) == 0);
1367 ATF_REQUIRE(_sched_getparam(getpid(), d->threadid, &policy, &sp) == 0);
1370 ATF_REQUIRE(_sched_setparam(getpid(), d->threadid, policy, &sp) == 0);
1382 ATF_REQUIRE((pri = sysconf(_SC_SCHED_PRI_MIN)) != -1);
1384 ATF_REQUIRE((pri = sysconf(_SC_SCHED_PRI_MAX)) != -1);
1397 ATF_REQUIRE(_lwp_create(&lwp_data[0].context, 0,
1410 ATF_REQUIRE(lwp_data[0].futex_error == -1);
1419 ATF_REQUIRE(_lwp_create(&lwp_data[1].context, 0,
1432 ATF_REQUIRE(lwp_data[1].futex_error == -1);
1435 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE | FUTEX_PRIVATE_FLAG,
1445 ATF_REQUIRE(nlwps_running == 1);
1446 ATF_REQUIRE(_lwp_wait(0, &waiter) == 0);
1447 ATF_REQUIRE(waiter == lwp_data[1].threadid);
1450 ATF_REQUIRE(__futex(&futex_word, FUTEX_WAKE | FUTEX_PRIVATE_FLAG,
1460 ATF_REQUIRE(nlwps_running == 0);
1461 ATF_REQUIRE(_lwp_wait(0, &waiter) == 0);
1462 ATF_REQUIRE(waiter == lwp_data[0].threadid);