Lines Matching refs:atf_text_to_bool
331 atf_tc_set_md_var(tc, "descr", "Checks the atf_text_to_bool function");
337 RE(atf_text_to_bool("true", &b)); ATF_REQUIRE(b);
338 RE(atf_text_to_bool("TRUE", &b)); ATF_REQUIRE(b);
339 RE(atf_text_to_bool("yes", &b)); ATF_REQUIRE(b);
340 RE(atf_text_to_bool("YES", &b)); ATF_REQUIRE(b);
342 RE(atf_text_to_bool("false", &b)); ATF_REQUIRE(!b);
343 RE(atf_text_to_bool("FALSE", &b)); ATF_REQUIRE(!b);
344 RE(atf_text_to_bool("no", &b)); ATF_REQUIRE(!b);
345 RE(atf_text_to_bool("NO", &b)); ATF_REQUIRE(!b);
348 REQUIRE_ERROR(atf_text_to_bool("", &b));
351 REQUIRE_ERROR(atf_text_to_bool("", &b));
355 REQUIRE_ERROR(atf_text_to_bool("tru", &b));
358 REQUIRE_ERROR(atf_text_to_bool("tru", &b));
362 REQUIRE_ERROR(atf_text_to_bool("true2", &b));
365 REQUIRE_ERROR(atf_text_to_bool("true2", &b));
369 REQUIRE_ERROR(atf_text_to_bool("fals", &b));
372 REQUIRE_ERROR(atf_text_to_bool("fals", &b));
376 REQUIRE_ERROR(atf_text_to_bool("false2", &b));
379 REQUIRE_ERROR(atf_text_to_bool("false2", &b));