/netbsd-current/tests/lib/libexecinfo/ |
H A D | t_sig_backtrace.c | 132 ATF_REQUIRE(size != 0); 174 ATF_REQUIRE(found_handler); 175 ATF_REQUIRE(found_sigtramp); 176 ATF_REQUIRE(found_the_loop); 177 ATF_REQUIRE(found_main); 193 ATF_REQUIRE(sig_stack.ss_sp != MAP_FAILED); 197 ATF_REQUIRE(sigaltstack(&sig_stack, NULL) == 0); 203 ATF_REQUIRE(sigaction(SIGSEGV, &sa, NULL) == 0); 221 ATF_REQUIRE(sig_stack.ss_sp != MAP_FAILED); 225 ATF_REQUIRE(sigaltstac [all...] |
/netbsd-current/external/bsd/atf/dist/atf-c/ |
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...] |
/netbsd-current/external/bsd/kyua-testers/dist/ |
H A D | atf_inttest.c | 70 ATF_REQUIRE(atf_utils_compare_file("test-result", "passed\n")); 83 ATF_REQUIRE(atf_utils_compare_file("test-result", 97 ATF_REQUIRE(atf_utils_compare_file("test-result", 100 ATF_REQUIRE(atf_utils_grep_file("About to die due to SIGABRT!", 102 ATF_REQUIRE(atf_utils_grep_file("attempting to gather stack trace", 116 ATF_REQUIRE(atf_utils_compare_file("test-result", 131 ATF_REQUIRE(atf_utils_compare_file("test-result", "failed: Body fails\n")); 148 ATF_REQUIRE(atf_utils_compare_file("test-result", "passed\n")); 162 ATF_REQUIRE(atf_utils_compare_file("test-result", "broken: Test case " 177 ATF_REQUIRE(atf_utils_compare_fil [all...] |
H A D | run_test.c | 59 #define RE(expr) ATF_REQUIRE(!kyua_error_is_set(expr)) 260 ATF_REQUIRE(!kyua_error_is_set(error)); 264 ATF_REQUIRE(!timed_out); 295 ATF_REQUIRE(!kyua_error_is_set(error)); 300 ATF_REQUIRE(!timed_out); 324 ATF_REQUIRE(!kyua_error_is_set(error)); 336 ATF_REQUIRE(mkdir("dir", 0000) != -1); 342 ATF_REQUIRE(kyua_error_is_set(error)); 343 ATF_REQUIRE(kyua_error_is_type(error, "libc")); 354 ATF_REQUIRE(kyua_error_is_se [all...] |
H A D | error_test.c | 45 ATF_REQUIRE(kyua_error_is_type(error, kyua_oom_error_type)); 46 ATF_REQUIRE(kyua_error_data(error) == NULL); 56 ATF_REQUIRE(!kyua_error_is_set(kyua_error_subsume(primary, secondary))); 66 ATF_REQUIRE(kyua_error_is_type(error, "primary_error")); 77 ATF_REQUIRE(kyua_error_is_type(error, "secondary_error")); 86 ATF_REQUIRE(kyua_error_is_type(error, "test_error")); 95 ATF_REQUIRE(!kyua_error_is_type(error, "test_erro")); 96 ATF_REQUIRE(!kyua_error_is_type(error, "test_error2")); 97 ATF_REQUIRE(!kyua_error_is_type(error, "foo")); 106 ATF_REQUIRE(kyua_error_dat [all...] |
H A D | text_test.c | 66 ATF_REQUIRE(!kyua_error_is_set(error)); 76 ATF_REQUIRE(!kyua_error_is_set(error)); 87 ATF_REQUIRE(!kyua_error_is_set(error)); 97 ATF_REQUIRE(!kyua_error_is_set(error));
|
/netbsd-current/external/bsd/atf/dist/atf-c/detail/ |
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...] |
/netbsd-current/external/bsd/kyua-cli/dist/utils/config/ |
H A D | nodes_test.cpp | 89 ATF_REQUIRE(copy->value()); 91 ATF_REQUIRE(node.value()); 92 ATF_REQUIRE(!copy->value()); 101 ATF_REQUIRE(!node.is_set()); 103 ATF_REQUIRE( node.is_set()); 112 ATF_REQUIRE(!node.value()); 114 ATF_REQUIRE( node.value()); 126 ATF_REQUIRE(state.is_boolean(-1)); 127 ATF_REQUIRE(state.to_boolean(-1)); 141 ATF_REQUIRE(!nod [all...] |
/netbsd-current/external/bsd/kyua-cli/dist/utils/process/ |
H A D | child_test.cpp | 264 ATF_REQUIRE(pid != -1); 284 ATF_REQUIRE(::waitpid(pid, &status, 0) != -1); 285 ATF_REQUIRE(WIFEXITED(status)); 287 ATF_REQUIRE(atf::utils::grep_file("stdout: Z", "stdout.txt")); 288 ATF_REQUIRE(atf::utils::grep_file("stderr: Z", "stderr.txt")); 313 ATF_REQUIRE(std::getline(output, line).good()); 319 ATF_REQUIRE(std::getline(output, line).good()); 323 ATF_REQUIRE(status.exited()); 353 ATF_REQUIRE(atf::utils::grep_string("pipe.*failed", e.what())); 374 ATF_REQUIRE(statu [all...] |
/netbsd-current/external/bsd/atf/dist/atf-c++/detail/ |
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...] |
/netbsd-current/external/bsd/atf/dist/tools/ |
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...] |
/netbsd-current/external/bsd/kyua-cli/dist/cli/ |
H A D | cmd_help_test.cpp | 188 ATF_REQUIRE(expected == ui.out_log()); 189 ATF_REQUIRE(ui.err_log().empty()); 241 ATF_REQUIRE(atf::utils::grep_collection("^Usage: progname \\[general_options\\] " 243 ATF_REQUIRE(!atf::utils::grep_collection("Available.*options", ui.out_log())); 244 ATF_REQUIRE(atf::utils::grep_collection("^See kyua-mock_simple\\(1\\) for more " 246 ATF_REQUIRE(ui.err_log().empty()); 270 ATF_REQUIRE(atf::utils::grep_collection( 273 ATF_REQUIRE(atf::utils::grep_collection("Available general options", 275 ATF_REQUIRE(atf::utils::grep_collection("--global_a", ui.out_log())); 276 ATF_REQUIRE(at [all...] |
H A D | cmd_debug_test.cpp | 56 ATF_REQUIRE(ui.out_log().empty()); 57 ATF_REQUIRE(ui.err_log().empty()); 72 ATF_REQUIRE(ui.out_log().empty()); 73 ATF_REQUIRE(ui.err_log().empty());
|
/netbsd-current/external/bsd/kyua-cli/dist/utils/sqlite/ |
H A D | exceptions_test.cpp | 45 ATF_REQUIRE(std::strcmp("Some text", e.what()) == 0); 53 ATF_REQUIRE(std::strcmp("Some text", e.what()) == 0); 68 ATF_REQUIRE(std::strcmp("unable to open database file", e.what()) == 0); 79 ATF_REQUIRE(std::strcmp("Unknown column 'some_name'", e.what()) == 0);
|
/netbsd-current/external/bsd/lutok/dist/ |
H A D | exceptions_test.cpp | 42 ATF_REQUIRE(std::strcmp("Some text", e.what()) == 0); 50 ATF_REQUIRE(std::strcmp("Some text", e.what()) == 0); 66 ATF_REQUIRE(std::strcmp("The error message", e.what()) == 0); 75 ATF_REQUIRE(std::strcmp("File 'missing-file' not found", e.what()) == 0);
|
/netbsd-current/tests/lib/libpthread/dlopen/ |
H A D | t_main_pthread_create.c | 47 ATF_REQUIRE((intptr_t)arg == 0xcafe); 66 ATF_REQUIRE(ret == 0); 94 ATF_REQUIRE(ret == 0); 96 ATF_REQUIRE(dlclose(handle) == 0);
|
/netbsd-current/tests/lib/libc/c063/ |
H A D | t_fexecve.c | 60 ATF_REQUIRE((pid = fork()) != -1); 78 ATF_REQUIRE(waitpid(pid, &status, 0) != -1); 84 ATF_REQUIRE(WEXITSTATUS(status) == EXIT_SUCCESS); 86 ATF_REQUIRE(access("test", F_OK) == 0);
|
/netbsd-current/tests/lib/libc/sys/ |
H A D | t_swapcontext.c | 64 ATF_REQUIRE(swapcontext(&nctx, &octx)); 79 ATF_REQUIRE(getcontext(&nctx) == 0); 84 ATF_REQUIRE(nctx.uc_flags & _UC_TLSBASE); 93 ATF_REQUIRE(swapcontext(&octx, &nctx) == 0);
|
H A D | t_getgroups.c | 55 ATF_REQUIRE(getgroups(10, (gid_t *)-1) == -1); 56 ATF_REQUIRE(errno == EFAULT); 60 ATF_REQUIRE(getgroups(-1, gidset) == -1); 61 ATF_REQUIRE(errno == EINVAL); 109 ATF_REQUIRE(n >= 0); 114 ATF_REQUIRE(pid >= 0); 153 ATF_REQUIRE(getgroups(0, gidset) >= 0);
|
H A D | t_truncate.c | 60 ATF_REQUIRE(fd >= 0); 66 ATF_REQUIRE(ftruncate(fd, sizes[i]) == 0); 67 ATF_REQUIRE(fstat(fd, &st) == 0); 96 ATF_REQUIRE(fd >= 0); 120 ATF_REQUIRE(fd >= 0); 126 ATF_REQUIRE(truncate(path, sizes[i]) == 0); 127 ATF_REQUIRE(fstat(fd, &st) == 0);
|
/netbsd-current/tests/lib/libc/gen/ |
H A D | t_realpath.c | 133 ATF_REQUIRE(fd >= 0); 134 ATF_REQUIRE(symlink(path, slnk) == 0); 135 ATF_REQUIRE(close(fd) == 0); 137 ATF_REQUIRE(realpath(slnk, resb) != NULL); 138 ATF_REQUIRE(strcmp(resb, path) == 0); 140 ATF_REQUIRE(unlink(path) == 0); 141 ATF_REQUIRE(unlink(slnk) == 0);
|
H A D | t_setdomainname.c | 66 ATF_REQUIRE(setdomainname(domains[i],sizeof(domains[i])) == 0); 67 ATF_REQUIRE(getdomainname(name, sizeof(name)) == 0); 68 ATF_REQUIRE(strcmp(domains[i], name) == 0); 92 ATF_REQUIRE(setdomainname(name, sizeof(name)) == -1); 125 ATF_REQUIRE(getdomainname(domain, sizeof(domain)) == 0);
|
H A D | t_sethostname.c | 66 ATF_REQUIRE(sethostname(hosts[i], sizeof(hosts[i])) == 0); 67 ATF_REQUIRE(gethostname(name, sizeof(name)) == 0); 68 ATF_REQUIRE(strcmp(hosts[i], name) == 0); 92 ATF_REQUIRE(sethostname(name, sizeof(name)) == -1); 125 ATF_REQUIRE(gethostname(host, sizeof(host)) == 0);
|
/netbsd-current/tests/lib/libc/ |
H A D | t_cdb.c | 95 ATF_REQUIRE((db = cdbw_open()) != NULL); 96 ATF_REQUIRE((fd = creat(database_name, S_IRUSR|S_IWUSR)) != -1); 100 ATF_REQUIRE(cdbw_put(db, &keys[i], sizeof(keys[i]), 103 ATF_REQUIRE(cdbw_output(db, fd, "test database", arc4random) == 0); 105 ATF_REQUIRE(close(fd) == 0); 116 ATF_REQUIRE((db = cdbr_open(database_name, CDBR_DEFAULT)) != NULL); 119 ATF_REQUIRE(cdbr_find(db, &keys[i], sizeof(keys[i]),
|
/netbsd-current/external/bsd/kyua-cli/dist/engine/drivers/ |
H A D | list_tests_test.cpp | 104 ATF_REQUIRE(::mkdir(source_root.c_str(), 0755) != -1); 105 ATF_REQUIRE(::mkdir((source_root / "dir").c_str(), 0755) != -1); 107 ATF_REQUIRE(::mkdir(build_root.c_str(), 0755) != -1); 108 ATF_REQUIRE(::mkdir((build_root / "dir").c_str(), 0755) != -1); 110 ATF_REQUIRE(::symlink(helpers(tc).c_str(), 165 ATF_REQUIRE(exp_test_cases == hooks.test_cases); 180 ATF_REQUIRE(exp_test_cases == hooks.test_cases); 195 ATF_REQUIRE(exp_test_cases == hooks.test_cases); 211 ATF_REQUIRE(exp_test_cases == hooks.test_cases); 225 ATF_REQUIRE(exp_test_case [all...] |