Home
last modified time | relevance | path

Searched full:check (Results 1 – 25 of 6930) sorted by relevance

12345678910>>...278

/freebsd/tools/regression/capsicum/syscalls/
H A Dcap_fcntls_limit.c49 CHECK(cap_fcntls_get(fd, &fcntlrights) == 0); in fcntl_tests_0()
50 CHECK(fcntlrights == CAP_FCNTL_ALL); in fcntl_tests_0()
52 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0()
53 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_0()
54 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in fcntl_tests_0()
55 CHECK(fcntl(fd, F_SETFD, 0) == 0); in fcntl_tests_0()
56 CHECK(fcntl(fd, F_GETFD) == 0); in fcntl_tests_0()
58 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0()
59 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == 0); in fcntl_tests_0()
60 CHECK(fcnt in fcntl_tests_0()
[all...]
H A Dcap_ioctls_limit.c50 CHECK(cap_ioctls_get(fd, NULL, 0) == CAP_IOCTLS_ALL); in ioctl_tests_0()
52 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0()
53 CHECK(ioctl(fd, FIOCLEX) == 0); in ioctl_tests_0()
54 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0()
55 CHECK(ioctl(fd, FIONCLEX) == 0); in ioctl_tests_0()
56 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0()
60 CHECK(cap_ioctls_limit(fd, cmds, nitems(cmds)) == 0); in ioctl_tests_0()
62 CHECK(cap_ioctls_get(fd, cmds, nitems(cmds)) == nitems(cmds)); in ioctl_tests_0()
63 CHECK((cmds[0] == FIOCLEX && cmds[1] == FIONCLEX) || in ioctl_tests_0()
67 CHECK(cap_ioctls_limi in ioctl_tests_0()
[all...]
/freebsd/tools/regression/iscsi/
H A Discsi-test.sh114 check() { function
136 check iscontrol -dt $TARGETIP > $TMPDIR/discovered
140 check cmp $TMPDIR/expected $TMPDIR/discovered
146 check iscsictl -Ad $TARGETIP
150 check cmp $TMPDIR/expected $TMPDIR/discovered
152 check iscsictl -Ra
164 check iscsiadm -m discovery -t sendtargets -p $TARGETIP > $TMPDIR/discovered
168 check cmp $TMPDIR/expected $TMPDIR/discovered
174 check iscsiadm add discovery-address $TARGETIP
175 check iscsiadm modify discovery --sendtargets enable
[all …]
/freebsd/bin/sh/tests/expansion/
H A Darith2.04 check() {
13 check "v=2" 2
14 check "v" 2
15 check "$(($v))" 2
16 check "v+=1" 3
17 check "v" 3
20 check "4611686018427387904" 4611686018427387904
21 check "0x4000000000000000" 4611686018427387904
22 check "0400000000000000000000" 4611686018427387904
23 check "0x4Ab0000000000000" 5381801554707742720
[all …]
H A Dpathname1.08 check() {
28 check '' ''
29 check 'testdir/b' 'testdir/b'
30 check 'testdir/c' 'testdir/c'
31 check '\*' '*'
32 check '\?' '?'
33 check '*' 'testdir testdir2 testf'
34 check '*""' 'testdir testdir2 testf'
35 check '""*' 'testdir testdir2 testf'
36 check '*/' 'testdir/ testdir2/'
[all …]
H A Dcmdsubst2.04 check() {
11 check '`echo /et[c]/` = "/etc/"'
12 check '`printf /var/empty%s /et[c]/` = "/var/empty/etc/"'
13 check '"`echo /et[c]/`" = "/etc/"'
14 check '`echo "/et[c]/"` = "/etc/"'
15 check '`printf /var/empty%s "/et[c]/"` = "/var/empty/et[c]/"'
16 check '`printf /var/empty/%s \"/et[c]/\"` = "/var/empty/\"/et[c]/\""'
17 check '"`echo \"/et[c]/\"`" = "/et[c]/"'
18 check '"`echo "/et[c]/"`" = "/et[c]/"'
19 check '`echo $$` = $$'
[all …]
H A Dcmdsubst1.04 check() {
11 check '"$(echo abcde)" = "abcde"'
12 check '"$(echo abcde; :)" = "abcde"'
14 check '"$(printf abcde)" = "abcde"'
15 check '"$(printf abcde; :)" = "abcde"'
18 check '-n "$(umask)"'
19 check '-n "$(umask; :)"'
20 check '-n "$(umask 2>&1)"'
21 check '-n "$(umask 2>&1; :)"'
24 check '-n "$(times)"'
[all …]
H A Darith10.04 check() {
13 check "0 && 0 / 0" 0
14 check "1 || 0 / 0" 1
15 check "0 && (ro = 2)" 0
16 check "ro" 4
17 check "1 || (ro = -1)" 1
18 check "ro" 4
19 check "0 && (rw += 1)" 0
20 check "rw" 1
21 check "1 || (rw += 1)" 1
[all …]
H A Darith1.04 check() {
11 check "0&&0" 0
12 check "1&&0" 0
13 check "0&&1" 0
14 check "1&&1" 1
15 check "2&&2" 1
16 check "1&&2" 1
17 check "1<<40&&1<<40" 1
18 check "1<<40&&4" 1
20 check "0||0" 0
[all …]
/freebsd/contrib/netbsd-tests/include/sys/
H A Dt_cdefs.c75 #define CHECK(a, b) ATF_REQUIRE(__type_min(a) == s[b].min); \ in ATF_TC_BODY() macro
78 CHECK(signed char, 0); in ATF_TC_BODY()
79 CHECK(signed short, 1); in ATF_TC_BODY()
80 CHECK(signed int, 2); in ATF_TC_BODY()
81 CHECK(signed long, 3); in ATF_TC_BODY()
82 CHECK(signed long long, 4); in ATF_TC_BODY()
83 #undef CHECK in ATF_TC_BODY()
94 #define CHECK(a, b) ATF_REQUIRE(__type_min(a) == u[b].min); \ in ATF_TC_BODY() macro
97 CHECK(unsigned char, 0); in ATF_TC_BODY()
98 CHECK(unsigned short, 1); in ATF_TC_BODY()
[all …]
/freebsd/usr.bin/bmake/tests/execution/joberr/
H A Dexpected.stdout.12 *** [do-check-joberr] Error code 1
4 *** [do-check-joberr] Error code 1
6 *** [do-check-joberr] Error code 1
8 *** [do-check-joberr] Error code 1
10 *** [do-check-joberr] Error code 1
12 *** [do-check-joberr] Error code 1
14 *** [do-check-joberr] Error code 1
16 *** [do-check-joberr] Error code 1
18 *** [do-check-joberr] Error code 1
20 *** [do-check-joberr] Error code 1
[all …]
/freebsd/contrib/netbsd-tests/bin/sh/
H A Dt_fsplit.sh45 check() function
51 (*) atf_fail "Internal test error, $# args to check test ${TEST}";;
93 check 'for f in $x; do echo x${f}y; done' ''
102 # Check that IFS is applied to text from ${x-...} unless it is inside
104 check 'set -- ${x-a b c}; echo $#' 3
106 check 'set -- ${x-"a b" c}; echo $#' 2
107 check 'set -- ${x-a "b c"}; echo $#' 2
108 check 'set -- ${x-"a b c"}; echo $#' 1
110 check "set -- \${x-'a b' c}; echo \$#" 2
111 check "set -- \${x-a 'b c'}; echo \$#" 2
[all …]
H A Dt_here.sh41 check() function
128 check 'x=`cat <<EOF'$nl'text'${nl}EOF$nl'`; echo $x' 'text' 0
129 check 'x=`cat <<\EOF'$nl'text'${nl}EOF$nl'`; echo $x' 'text' 0
131 check "y=${y};"'x=`cat <<EOF'$nl'te${y}t'${nl}EOF$nl'`; echo $x' \
133 check "y=${y};"'x=`cat <<\EOF'$nl'te${y}t'${nl}EOF$nl'`; echo $x' \
135 check "y=${y};"'x=`cat <<"EOF"'$nl'te${y}t'${nl}EOF$nl'`; echo $x' \
137 check "y=${y};"'x=`cat <<'"'EOF'"$nl'te${y}t'${nl}EOF$nl'`; echo $x' \
140 # check that quotes in the here doc survive and cause no problems
141 check "cat <<EOF${nl}te'xt${nl}EOF$nl" "te'xt" 0
142 check "cat <<\EOF${nl}te'xt${nl}EOF$nl" "te'xt" 0
[all …]
/freebsd/contrib/unbound/util/
H A Dfptr_wlist.h39 * This file contains functions that check function pointers.
64 * Macro to perform an assertion check for fptr wlist checks.
65 * Does not get disabled in optimize mode. Check adds security by layers.
78 * Check function pointer whitelist for comm_point callback values.
80 * @param fptr: function pointer to check.
86 * Check function pointer whitelist for raw comm_point callback values.
88 * @param fptr: function pointer to check.
94 * Check function pointer whitelist for comm_timer callback values.
96 * @param fptr: function pointer to check.
102 * Check function pointer whitelist for comm_signal callback values.
[all …]
/freebsd/contrib/ntp/libjsmn/
H A Djsmn_test.c14 /* Check single condition */
15 #define check(cond) do { if (!(cond)) fail(); } while (0) macro
53 check(r >= 0); in test_empty()
54 check(t[0].type == JSMN_OBJECT); in test_empty()
55 check(t[0].start == 0 && t[0].end == 2); in test_empty()
60 check(r >= 0); in test_empty()
61 check(t[0].type == JSMN_ARRAY); in test_empty()
62 check(t[0].start == 0 && t[0].end == 2); in test_empty()
67 check(r >= 0); in test_empty()
68 check(t[0].type == JSMN_OBJECT && t[0].start == 0 && t[0].end == 8); in test_empty()
[all …]
/freebsd/crypto/krb5/src/lib/krb5/krb/
H A Dt_copy_context.c41 check(int cond) in check() function
50 check((str1 == NULL) == (str2 == NULL)); in compare_string()
52 check(strcmp(str1, str2) == 0); in compare_string()
58 check((list1 == NULL) == (list2 == NULL)); in compare_etypes()
63 check(*list1 == *list2); in compare_etypes()
66 /* Check that the context c is a valid copy of the reference context r. */
72 /* Check fields which should have been propagated from r. */ in check_context()
74 check(c->os_context.time_offset == r->os_context.time_offset); in check_context()
75 check(c->os_context.usec_offset == r->os_context.usec_offset); in check_context()
76 check(c->os_context.os_flags == r->os_context.os_flags); in check_context()
[all …]
/freebsd/crypto/krb5/src/util/support/
H A Dt_json.c82 check(int pred, const char *str) in check() function
105 check(k5_json_array_length(a) == 3, "array length"); in test_array()
107 check(k5_json_get_tid(v) == K5_JSON_TID_NULL, "array[2] tid"); in test_array()
109 check(k5_json_get_tid(v) == K5_JSON_TID_NUMBER, "array[1] tid"); in test_array()
110 check(k5_json_number_value(v) == 2, "array[1] value"); in test_array()
112 check(k5_json_get_tid(v) == K5_JSON_TID_STRING, "array[0] tid"); in test_array()
113 check(strcmp(k5_json_string_utf8(v), "abc") == 0, "array[0] value"); in test_array()
122 check(k5_json_get_tid(v) == K5_JSON_TID_NULL, "fmt array[0] tid"); in test_array()
124 check(k5_json_get_tid(v) == K5_JSON_TID_NULL, "fmt array[1] tid"); in test_array()
126 check(k5_json_get_tid(v) == K5_JSON_TID_BOOL, "fmt array[2] tid"); in test_array()
[all …]
/freebsd/crypto/heimdal/kadmin/
H A Drpc.c44 #define CHECK(x) \ macro
55 #define INSIST(x) CHECK(!(x))
237 CHECK(read_data(sp, msg, len)); in collect_framents()
307 CHECK(krb5_ret_uint32(sp, &gcred->version)); in ret_gcred()
308 CHECK(krb5_ret_uint32(sp, &gcred->proc)); in ret_gcred()
309 CHECK(krb5_ret_uint32(sp, &gcred->seq_num)); in ret_gcred()
310 CHECK(krb5_ret_uint32(sp, &gcred->service)); in ret_gcred()
311 CHECK(ret_data_xdr(sp, &gcred->handle)); in ret_gcred()
357 CHECK(ret_data_xdr(sp, &c)); in ret_string_xdr()
374 CHECK(krb5_unparse_name(contextp, p, &str)); in store_principal_xdr()
[all …]
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_write_format_zip_entry_size_unset.c80 /* Check for end of central directory signature */ in verify_contents()
82 /* Check for number of disk */ in verify_contents()
84 /* Check for disk where central directory starts */ in verify_contents()
86 /* Check for number of central directory records on disk */ in verify_contents()
88 /* Check for total number of central directory records */ in verify_contents()
90 /* Check for size of central directory and offset in verify_contents()
93 /* Check for empty comment length */ in verify_contents()
99 /* Check for entry in central directory signature */ in verify_contents()
101 /* Check for version used to write entry */ in verify_contents()
103 /* Check for version needed to extract entry */ in verify_contents()
[all …]
/freebsd/crypto/heimdal/lib/kadm5/
H A Dmarshall.c37 #define CHECK(e) do { if (e) return EINVAL; } while (0) macro
44 CHECK(krb5_store_int32(sp, key->key_data_ver)); in kadm5_store_key_data()
45 CHECK(krb5_store_int32(sp, key->key_data_kvno)); in kadm5_store_key_data()
46 CHECK(krb5_store_int32(sp, key->key_data_type[0])); in kadm5_store_key_data()
49 CHECK(krb5_store_data(sp, c)); in kadm5_store_key_data()
50 CHECK(krb5_store_int32(sp, key->key_data_type[1])); in kadm5_store_key_data()
53 CHECK(krb5_store_data(sp, c)); in kadm5_store_key_data()
99 CHECK(krb5_store_int32(sp, tl->tl_data_type)); in kadm5_store_tl_data()
102 CHECK(krb5_store_data(sp, c)); in kadm5_store_tl_data()
114 CHECK(krb5_ret_data(sp, &c)); in kadm5_ret_tl_data()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dlibzfs_input_check.c310 fnvlist_add_string(required, "message", "input check"); in test_log_history()
942 * Canonical reference check of /dev/zfs ioctl numbers.
950 #define CHECK(expr) do { \ in validate_ioc_values() macro
957 CHECK(ZFS_IOC_BASE + 0 == ZFS_IOC_POOL_CREATE); in validate_ioc_values()
958 CHECK(ZFS_IOC_BASE + 1 == ZFS_IOC_POOL_DESTROY); in validate_ioc_values()
959 CHECK(ZFS_IOC_BASE + 2 == ZFS_IOC_POOL_IMPORT); in validate_ioc_values()
960 CHECK(ZFS_IOC_BASE + 3 == ZFS_IOC_POOL_EXPORT); in validate_ioc_values()
961 CHECK(ZFS_IOC_BASE + 4 == ZFS_IOC_POOL_CONFIGS); in validate_ioc_values()
962 CHECK(ZFS_IOC_BASE + 5 == ZFS_IOC_POOL_STATS); in validate_ioc_values()
963 CHECK(ZFS_IOC_BASE + 6 == ZFS_IOC_POOL_TRYIMPORT); in validate_ioc_values()
[all …]
/freebsd/crypto/krb5/src/util/profile/
H A Dt_profile.c44 check(long code) in check() function
84 check(profile_init_path("test2.ini", &p)); in test_iterate()
86 /* Iterate and check for the expected values. */ in test_iterate()
87 check(profile_iterator_create(p, names, 0, &iter)); in test_iterate()
89 check(profile_iterator(&iter, &name, &value)); in test_iterate()
103 check(profile_iterator_create(p, names, 0, &iter)); in test_iterate()
105 check(profile_iterator(&iter, NULL, &value)); in test_iterate()
108 check(profile_update_relation(p, names, value, NULL)); in test_iterate()
117 /* Check that no values for the section are found in the resulting file. */ in test_iterate()
118 check(profile_init_path("test3.ini", &p)); in test_iterate()
[all …]
/freebsd/crypto/krb5/src/lib/krb5/ccache/
H A Dt_cc.c185 #define CHECK(kret,msg) \ macro
205 if (experr != kret) { CHECK(kret, msg);}
233 CHECK(ret, "counting entries in ccache"); in check_num_entries()
260 CHECK(kret, "init_creds"); in cc_test()
263 CHECK(kret, "resolve"); in cc_test()
265 CHECK(kret, "initialize"); in cc_test()
276 CHECK(kret, "store"); in cc_test()
279 CHECK(kret, "get_principal"); in cc_test()
291 CHECK(kret, "set_flags"); in cc_test()
294 CHECK(kret, "start_seq_get"); in cc_test()
[all …]
H A Dt_cccol.c41 /* Check that code is 0. Display an error message first if it is not. */
43 check(krb5_error_code code) in check() function
65 check(krb5_cccol_cursor_new(ctx, &cursor)); in get_collection_names()
67 check(krb5_cccol_cursor_next(ctx, cursor, &cache)); in get_collection_names()
70 check(krb5_cc_get_full_name(ctx, cache, &name)); in get_collection_names()
106 * Check that the cache names within the current collection begin with first
135 /* Check that the name of cache matches expected_name. */
141 check(krb5_cc_get_full_name(ctx, cache, &name)); in check_name()
146 /* Check that when collection_name is resolved, the resulting cache's name
153 check(krb5_cc_resolve(ctx, collection_name, &cache)); in check_primary_name()
[all …]
/freebsd/crypto/openssl/test/recipes/
H A D15-test_ecparam.t32 my $valid = shift; # Check should pass or fail?
64 subtest "Check loading valid parameters by ecparam with -check" => sub {
66 checkload(\@valid, 1, "ecparam", "-check");
69 subtest "Check loading valid parameters by ecparam with -check_named" => sub {
74 subtest "Check loading valid parameters by pkeyparam with -check" => sub {
76 checkload(\@valid, 1, "pkeyparam", "-check");
79 subtest "Check loading non-canonically encoded parameters by ecparam with -check" => sub {
81 checkload(\@noncanon, 1, "ecparam", "-check");
84 subtest "Check loading non-canonically encoded parameters by ecparam with -check_named" => sub {
89 subtest "Check loading non-canonically encoded parameters by pkeyparam with -check" => sub {
[all …]

12345678910>>...278