/bind-9.6-ESV-R11/unit/atf-src/atf-c++/detail/ |
H A D | expand_test.cpp | 52 ATF_REQUIRE(!is_glob("")); 53 ATF_REQUIRE(!is_glob("a")); 54 ATF_REQUIRE(!is_glob("foo")); 56 ATF_REQUIRE( is_glob("*")); 57 ATF_REQUIRE( is_glob("a*")); 58 ATF_REQUIRE( is_glob("*a")); 59 ATF_REQUIRE( is_glob("a*b")); 61 ATF_REQUIRE( is_glob("?")); 62 ATF_REQUIRE( is_glob("a?")); 63 ATF_REQUIRE( is_glo [all...] |
H A D | fs_test.cpp | 103 ATF_REQUIRE( path("/").is_absolute()); 104 ATF_REQUIRE( path("////").is_absolute()); 105 ATF_REQUIRE( path("////a").is_absolute()); 106 ATF_REQUIRE( path("//a//").is_absolute()); 107 ATF_REQUIRE(!path("a////").is_absolute()); 108 ATF_REQUIRE(!path("../foo").is_absolute()); 120 ATF_REQUIRE( path("/").is_root()); 121 ATF_REQUIRE( path("////").is_root()); 122 ATF_REQUIRE(!path("////a").is_root()); 123 ATF_REQUIRE(!pat [all...] |
H A D | env_test.cpp | 45 ATF_REQUIRE(atf::env::has("PATH")); 46 ATF_REQUIRE(!atf::env::get("PATH").empty()); 48 ATF_REQUIRE(!atf::env::has("_UNDEFINED_VARIABLE_")); 58 ATF_REQUIRE(atf::env::has("PATH")); 61 ATF_REQUIRE(atf::env::get("PATH") != oldval); 64 ATF_REQUIRE(!atf::env::has("_UNDEFINED_VARIABLE_")); 76 ATF_REQUIRE(atf::env::has("PATH")); 78 ATF_REQUIRE(!atf::env::has("PATH"));
|
H A D | text_test.cpp | 55 ATF_REQUIRE(std::strcmp(copy, "foo") == 0); 58 ATF_REQUIRE(std::strcmp(copy, "bar") == 0); 59 ATF_REQUIRE(std::strcmp(orig, "foo") == 0); 147 ATF_REQUIRE(match("", "")); 148 ATF_REQUIRE(!match("foo", "")); 150 ATF_REQUIRE(match("", ".*")); 151 ATF_REQUIRE(match("", "[a-z]*")); 153 ATF_REQUIRE(match("hello", "hello")); 154 ATF_REQUIRE(match("hello", "[a-z]+")); 155 ATF_REQUIRE(matc [all...] |
H A D | process_test.cpp | 100 ATF_REQUIRE(std::strcmp(argv[0], carray[0]) == 0); 108 ATF_REQUIRE(std::strcmp(argv[0], carray[0]) == 0); 109 ATF_REQUIRE(std::strcmp(argv[1], carray[1]) == 0); 110 ATF_REQUIRE(std::strcmp(argv[2], carray[2]) == 0); 207 ATF_REQUIRE(std::strcmp((*argv2)[0], (*argv1)[0]) == 0); 209 ATF_REQUIRE(argv2->exec_argv() != argv1->exec_argv()); 213 ATF_REQUIRE(std::strcmp(eargv2[0], carray1[0]) == 0); 236 ATF_REQUIRE(std::strcmp((*argv2)[0], (*argv1)[0]) == 0); 238 ATF_REQUIRE(argv2->exec_argv() != argv1->exec_argv()); 242 ATF_REQUIRE(st [all...] |
/bind-9.6-ESV-R11/unit/atf-src/atf-run/ |
H A D | fs_test.cpp | 80 ATF_REQUIRE(t1.str().find("XXXXXX") == std::string::npos); 81 ATF_REQUIRE(t2.str().find("XXXXXX") == std::string::npos); 82 ATF_REQUIRE(t1 != t2); 83 ATF_REQUIRE(!atf::fs::exists(tmpl)); 84 ATF_REQUIRE( atf::fs::exists(t1)); 85 ATF_REQUIRE( atf::fs::exists(t2)); 88 ATF_REQUIRE( fi1.is_owner_readable()); 89 ATF_REQUIRE( fi1.is_owner_writable()); 90 ATF_REQUIRE( fi1.is_owner_executable()); 91 ATF_REQUIRE(!fi [all...] |
H A D | signals_test.cpp | 106 ATF_REQUIRE(sigusr1::happened); 115 ATF_REQUIRE(sigusr1::happened); 132 ATF_REQUIRE(sigusr1::happened); 139 ATF_REQUIRE(!sigusr1::happened); 141 ATF_REQUIRE(sigusr1::happened); 158 ATF_REQUIRE(sigusr1::happened); 165 ATF_REQUIRE(!sigusr1::happened); 168 ATF_REQUIRE(sigusr1::happened); 172 ATF_REQUIRE(!sigusr1::happened); 193 ATF_REQUIRE(sigusr1_ [all...] |
H A D | io_test.cpp | 100 ATF_REQUIRE(fd != -1); 116 ATF_REQUIRE(fd != -1); 142 ATF_REQUIRE(!fh1.is_valid()); 145 ATF_REQUIRE(fh2.is_valid()); 162 ATF_REQUIRE(!fh2.is_valid()); 163 ATF_REQUIRE(fh3.is_valid()); 166 ATF_REQUIRE(!fh3.is_valid()); 167 ATF_REQUIRE(fh1.is_valid()); 196 ATF_REQUIRE(::pipe(pfd) != -1); 200 ATF_REQUIRE(ren [all...] |
H A D | user_test.cpp | 97 ATF_REQUIRE(!is_member_of_group(g)); 100 ATF_REQUIRE(is_member_of_group(g)); 115 ATF_REQUIRE(is_root()); 117 ATF_REQUIRE(!is_root()); 131 ATF_REQUIRE(is_unprivileged()); 133 ATF_REQUIRE(!is_unprivileged());
|
/bind-9.6-ESV-R11/unit/atf-src/atf-c/detail/ |
H A D | env_test.c | 50 ATF_REQUIRE(atf_env_has("PATH")); 51 ATF_REQUIRE(!atf_env_has("_UNDEFINED_VARIABLE_")); 63 ATF_REQUIRE(atf_env_has("PATH")); 66 ATF_REQUIRE(strlen(val) > 0); 67 ATF_REQUIRE(strchr(val, ':') != NULL); 79 ATF_REQUIRE(atf_env_has("PATH")); 82 ATF_REQUIRE(strcmp(atf_env_get("PATH"), oldval) != 0); 83 ATF_REQUIRE(strcmp(atf_env_get("PATH"), "foo-bar") == 0); 86 ATF_REQUIRE(!atf_env_has("_UNDEFINED_VARIABLE_")); 88 ATF_REQUIRE(strcm [all...] |
H A D | text_test.c | 47 ATF_REQUIRE(atf_is_error(err)); \ 150 ATF_REQUIRE(cnt == 3); 151 ATF_REQUIRE(strcmp(acum, "123") == 0); 157 ATF_REQUIRE(cnt == 1); 158 ATF_REQUIRE(strcmp(acum, "1 2 3") == 0); 164 ATF_REQUIRE(cnt == 5); 165 ATF_REQUIRE(strcmp(acum, "12345") == 0); 171 ATF_REQUIRE(cnt == 5); 172 ATF_REQUIRE(strcmp(acum, "12345") == 0); 180 ATF_REQUIRE(atf_is_erro [all...] |
H A D | fs_test.c | 138 ATF_REQUIRE(strcmp(atf_fs_path_cstring(&p), t->out) == 0); 157 ATF_REQUIRE(atf_equal_fs_path_fs_path(&str, &str2)); 161 ATF_REQUIRE(!atf_equal_fs_path_fs_path(&str, &str2)); 198 ATF_REQUIRE(atf_fs_path_is_absolute(&p)); 200 ATF_REQUIRE(!atf_fs_path_is_absolute(&p)); 238 ATF_REQUIRE(atf_fs_path_is_root(&p)); 240 ATF_REQUIRE(!atf_fs_path_is_root(&p)); 277 ATF_REQUIRE(strcmp(atf_fs_path_cstring(&bp), t->branch) == 0); 316 ATF_REQUIRE(atf_equal_dynstr_cstring(&ln, t->leaf)); 358 ATF_REQUIRE(strcm [all...] |
H A D | map_test.c | 94 ATF_REQUIRE(!atf_equal_map_citer_map_citer(iter, atf_map_end_c(&map))); 95 ATF_REQUIRE(strcmp(atf_map_citer_key(iter), "K1") == 0); 96 ATF_REQUIRE(strcmp(atf_map_citer_data(iter), "V1") == 0); 99 ATF_REQUIRE(!atf_equal_map_citer_map_citer(iter, atf_map_end_c(&map))); 100 ATF_REQUIRE(strcmp(atf_map_citer_key(iter), "K2") == 0); 101 ATF_REQUIRE(strcmp(atf_map_citer_data(iter), "V2") == 0); 113 ATF_REQUIRE(atf_is_error(err)); 114 ATF_REQUIRE(atf_error_is(err, "libc")); 138 ATF_REQUIRE(atf_equal_map_iter_map_iter(iter, atf_map_end(&map))); 141 ATF_REQUIRE(!atf_equal_map_iter_map_ite [all...] |
H A D | user_test.c | 102 ATF_REQUIRE(atf_user_is_member_of_group(g)); 105 ATF_REQUIRE(!atf_user_is_member_of_group(g)); 118 ATF_REQUIRE(atf_user_is_root()); 120 ATF_REQUIRE(!atf_user_is_root()); 132 ATF_REQUIRE(atf_user_is_unprivileged()); 134 ATF_REQUIRE(!atf_user_is_unprivileged());
|
H A D | sanity_test.c | 115 ATF_REQUIRE(nlines == 0 || nlines == 3); 119 ATF_REQUIRE(atf_process_status_signaled(&status)); 120 ATF_REQUIRE(atf_process_status_termsig(&status) == SIGABRT); 122 ATF_REQUIRE(atf_process_status_exited(&status)); 123 ATF_REQUIRE(atf_process_status_exitstatus(&status) == EXIT_SUCCESS); 130 ATF_REQUIRE(atf_utils_grep_string("Invariant", lines[0])); 134 ATF_REQUIRE(atf_utils_grep_string("Precondition", lines[0])); 138 ATF_REQUIRE(atf_utils_grep_string("Postcondition", lines[0])); 142 ATF_REQUIRE(atf_utils_grep_string("Invariant", lines[0])); 146 ATF_REQUIRE(atf_utils_grep_strin [all...] |
H A D | dynstr_test.c | 60 ATF_REQUIRE(strcmp(atf_dynstr_cstring(&str), "") == 0); 86 ATF_REQUIRE(strcmp(atf_dynstr_cstring(&str), "String 1") == 0); 90 ATF_REQUIRE(strcmp(atf_dynstr_cstring(&str), "String 2") == 0); 94 ATF_REQUIRE(strcmp(atf_dynstr_cstring(&str), "String 3") == 0); 99 ATF_REQUIRE(strcmp(atf_dynstr_cstring(&str), 116 ATF_REQUIRE(strcmp(atf_dynstr_cstring(&str), "String 1") == 0); 120 ATF_REQUIRE(strcmp(atf_dynstr_cstring(&str), "String 2") == 0); 124 ATF_REQUIRE(strcmp(atf_dynstr_cstring(&str), "String 3") == 0); 130 ATF_REQUIRE(strcmp(atf_dynstr_cstring(&str), 148 ATF_REQUIRE(strcm [all...] |
/bind-9.6-ESV-R11/unit/atf-src/atf-c++/ |
H A D | utils_test.cpp | 59 ATF_REQUIRE(length != -1); 124 ATF_REQUIRE(atf::utils::compare_file("test.txt", "")); 131 ATF_REQUIRE(!atf::utils::compare_file("test.txt", "\n")); 132 ATF_REQUIRE(!atf::utils::compare_file("test.txt", "foo")); 133 ATF_REQUIRE(!atf::utils::compare_file("test.txt", " ")); 140 ATF_REQUIRE(atf::utils::compare_file("test.txt", "this is a short file")); 147 ATF_REQUIRE(!atf::utils::compare_file("test.txt", "")); 148 ATF_REQUIRE(!atf::utils::compare_file("test.txt", "\n")); 149 ATF_REQUIRE(!atf::utils::compare_file("test.txt", "this is a Short file")); 150 ATF_REQUIRE(!at [all...] |
H A D | check_test.cpp | 102 ATF_REQUIRE(atf::check::build_c_o("test.c", "test.o", 117 ATF_REQUIRE(!atf::check::build_c_o("test.c", "test.o", 134 ATF_REQUIRE(atf::check::build_cpp("test.c", "test.p", 149 ATF_REQUIRE(!atf::check::build_cpp("test.c", "test.p", 164 ATF_REQUIRE(atf::check::build_cxx_o("test.cpp", "test.o", 179 ATF_REQUIRE(!atf::check::build_cxx_o("test.cpp", "test.o", 196 ATF_REQUIRE(atf::utils::grep_file("-o test.o", "stdout")); 197 ATF_REQUIRE(atf::utils::grep_file("-c test.c", "stdout")); 201 ATF_REQUIRE(atf::utils::grep_file("-o test.o", "stdout")); 202 ATF_REQUIRE(at [all...] |
H A D | macros_test.cpp | 57 ATF_REQUIRE(open(name, O_CREAT | O_WRONLY | O_TRUNC, 0644) != -1); 110 ATF_REQUIRE(condition); 295 ATF_REQUIRE(atf::utils::grep_file("^passed", "result")); 296 ATF_REQUIRE(atf::fs::exists(atf::fs::path("before"))); 297 ATF_REQUIRE(!atf::fs::exists(atf::fs::path("after"))); 309 ATF_REQUIRE(atf::utils::grep_file("^failed: Failed on purpose", "result")); 310 ATF_REQUIRE(atf::fs::exists(atf::fs::path("before"))); 311 ATF_REQUIRE(!atf::fs::exists(atf::fs::path("after"))); 323 ATF_REQUIRE(atf::utils::grep_file("^skipped: Skipped on purpose", 325 ATF_REQUIRE(at [all...] |
H A D | config_test.cpp | 126 ATF_REQUIRE(atf::config::get(v->lc) != test_value); 146 ATF_REQUIRE(atf::config::get(v->lc) != test_value); 155 ATF_REQUIRE(atf::config::get(v->lc).empty()); 157 ATF_REQUIRE(!atf::config::get(v->lc).empty()); 183 ATF_REQUIRE(vars.find(v->lc) != vars.end()); 197 ATF_REQUIRE(atf::config::has(v->lc)); 201 ATF_REQUIRE(!atf::config::has(v->uc)); 204 ATF_REQUIRE(!atf::config::has("foo")); 205 ATF_REQUIRE(!atf::config::has("BAR")); 206 ATF_REQUIRE(!at [all...] |
/bind-9.6-ESV-R11/unit/atf-src/atf-c/ |
H A D | error_test.c | 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_erro [all...] |
H A D | utils_test.c | 65 ATF_REQUIRE(length != -1); 130 ATF_REQUIRE(atf_utils_compare_file("test.txt", "")); 137 ATF_REQUIRE(!atf_utils_compare_file("test.txt", "\n")); 138 ATF_REQUIRE(!atf_utils_compare_file("test.txt", "foo")); 139 ATF_REQUIRE(!atf_utils_compare_file("test.txt", " ")); 146 ATF_REQUIRE(atf_utils_compare_file("test.txt", "this is a short file")); 153 ATF_REQUIRE(!atf_utils_compare_file("test.txt", "")); 154 ATF_REQUIRE(!atf_utils_compare_file("test.txt", "\n")); 155 ATF_REQUIRE(!atf_utils_compare_file("test.txt", "this is a Short file")); 156 ATF_REQUIRE(!atf_utils_compare_fil [all...] |
H A D | tc_test.c | 69 ATF_REQUIRE(strcmp(atf_tc_get_ident(&tc), "test1") == 0); 70 ATF_REQUIRE(!atf_tc_has_md_var(&tc, "test-var")); 75 ATF_REQUIRE(strcmp(atf_tc_get_ident(&tc), "test2") == 0); 76 ATF_REQUIRE(atf_tc_has_md_var(&tc, "test-var")); 102 ATF_REQUIRE(strcmp(atf_tc_get_ident(&tc), "test1") == 0); 103 ATF_REQUIRE(!atf_tc_has_md_var(&tc, "test-var")); 107 ATF_REQUIRE(strcmp(atf_tc_get_ident(&tc), "test2") == 0); 108 ATF_REQUIRE(atf_tc_has_md_var(&tc, "test-var")); 124 ATF_REQUIRE(!atf_tc_has_md_var(&tc, "test-var")); 126 ATF_REQUIRE(atf_tc_has_md_va [all...] |
H A D | utils.c | 62 ATF_REQUIRE(regcomp(&preg, regex, REG_EXTENDED) == 0); 65 ATF_REQUIRE(res == 0 || res == REG_NOMATCH); 109 ATF_REQUIRE(count == 0); 190 ATF_REQUIRE(!atf_is_error(error)); 194 ATF_REQUIRE(write(fd, atf_dynstr_cstring(&formatted), 274 ATF_REQUIRE(!atf_is_error(error)); 276 ATF_REQUIRE((fd = open(file, O_RDONLY)) != -1); 308 ATF_REQUIRE(!atf_is_error(error)); 332 ATF_REQUIRE(!atf_is_error(error)); 337 ATF_REQUIRE(!atf_is_erro [all...] |
/bind-9.6-ESV-R11/lib/isc/tests/ |
H A D | symtab_test.c | 63 ATF_REQUIRE(st != NULL); 76 ATF_REQUIRE(key != NULL); 78 ATF_REQUIRE(value.as_pointer != NULL); 93 ATF_REQUIRE(key != NULL); 95 ATF_REQUIRE(value.as_pointer != NULL);
|