Home
last modified time | relevance | path

Searched refs:atf_text_to_long (Results 1 – 4 of 4) sorted by relevance

/freebsd-14.2/contrib/atf/atf-c/detail/
H A Dtext_test.c392 RE(atf_text_to_long("0", &l)); ATF_REQUIRE_EQ(l, 0); in ATF_TC_BODY()
393 RE(atf_text_to_long("-5", &l)); ATF_REQUIRE_EQ(l, -5); in ATF_TC_BODY()
394 RE(atf_text_to_long("5", &l)); ATF_REQUIRE_EQ(l, 5); in ATF_TC_BODY()
395 RE(atf_text_to_long("123456789", &l)); ATF_REQUIRE_EQ(l, 123456789); in ATF_TC_BODY()
398 REQUIRE_ERROR(atf_text_to_long("", &l)); in ATF_TC_BODY()
400 REQUIRE_ERROR(atf_text_to_long("foo", &l)); in ATF_TC_BODY()
402 REQUIRE_ERROR(atf_text_to_long("1234x", &l)); in ATF_TC_BODY()
H A Dtext.h42 atf_error_t atf_text_to_long(const char *, long *);
H A Dtext.c162 atf_text_to_long(const char *str, long *l) in atf_text_to_long() function
/freebsd-14.2/contrib/atf/atf-c/
H A Dtc.c733 err = atf_text_to_long(strval, &val); in atf_tc_get_config_var_as_long()