Lines Matching refs:ATF_REQUIRE

70     ATF_REQUIRE(atf_error_is(err, "test_error"));
71 ATF_REQUIRE(!atf_error_is(err, "unknown_error"));
72 ATF_REQUIRE(atf_error_data(err) == NULL);
77 ATF_REQUIRE(atf_error_is(err, "test_data_error"));
78 ATF_REQUIRE(!atf_error_is(err, "unknown_error"));
79 ATF_REQUIRE(atf_error_data(err) != NULL);
100 ATF_REQUIRE(atf_error_is(err, "no_memory"));
101 ATF_REQUIRE(atf_error_data(err) == NULL);
116 ATF_REQUIRE(!atf_is_error(err));
130 ATF_REQUIRE(!atf_is_error(err));
133 ATF_REQUIRE(atf_is_error(err));
152 ATF_REQUIRE(strcmp(buf, "Error 'test_error'") == 0);
159 ATF_REQUIRE(strcmp(buf, "Test formatting function") == 0);
177 ATF_REQUIRE(atf_error_is(err, "libc"));
179 ATF_REQUIRE(strcmp(atf_libc_error_msg(err), "Test message 1") == 0);
183 ATF_REQUIRE(atf_error_is(err, "libc"));
185 ATF_REQUIRE(strcmp(atf_libc_error_msg(err), "Test message 2") == 0);
201 ATF_REQUIRE(strstr(buf, strerror(ENOMEM)) != NULL);
202 ATF_REQUIRE(strstr(buf, "Test message 1") != NULL);
207 ATF_REQUIRE(strstr(buf, strerror(EPERM)) != NULL);
208 ATF_REQUIRE(strstr(buf, "Test message 2") != NULL);
213 ATF_REQUIRE(strstr(buf, strerror(EPERM)) != NULL);
214 ATF_REQUIRE(strstr(buf, "Test message 3") != NULL);
233 ATF_REQUIRE(atf_error_is(err, "no_memory"));
234 ATF_REQUIRE(atf_error_data(err) == NULL);
251 ATF_REQUIRE(strcmp(buf, "Not enough memory") == 0);
266 ATF_REQUIRE(atf_error_is(err, "no_memory"));
267 ATF_REQUIRE(atf_error_data(err) == NULL);
273 ATF_REQUIRE(atf_error_is(err, "no_memory"));
274 ATF_REQUIRE(atf_error_data(err) == NULL);