Home
last modified time | relevance | path

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

12345678910>>...382

/freebsd-src/lib/libnv/tests/
H A Dnvlist_exists_test.c36 #define CHECK(expr) do { \
53 CHECK(!nvlist_exists(nvl, "nvlist/null")); in main()
54 CHECK(!nvlist_exists_null(nvl, "nvlist/null")); in main()
55 CHECK(!nvlist_exists_bool(nvl, "nvlist/null")); in main()
56 CHECK(!nvlist_exists_number(nvl, "nvlist/null")); in main()
57 CHECK(!nvlist_exists_string(nvl, "nvlist/null")); in main()
58 CHECK(!nvlist_exists_nvlist(nvl, "nvlist/null")); in main()
59 CHECK(!nvlist_exists_descriptor(nvl, "nvlist/null")); in main()
60 CHECK(!nvlist_exists_binary(nvl, "nvlist/null")); in main()
62 CHECK(nvlist_erro in main()
37 #define CHECK( global() macro
[all...]
H A Dnvlist_free_test.c36 #define CHECK(expr) do { \
61 CHECK(nvlist_exists_null(nvl, "nvlist/null")); in main()
62 CHECK(nvlist_exists_bool(nvl, "nvlist/bool")); in main()
63 CHECK(nvlist_exists_number(nvl, "nvlist/number")); in main()
64 CHECK(nvlist_exists_string(nvl, "nvlist/string")); in main()
65 CHECK(nvlist_exists_nvlist(nvl, "nvlist/nvlist")); in main()
66 CHECK(nvlist_exists_descriptor(nvl, "nvlist/descriptor")); in main()
67 CHECK(nvlist_exists_binary(nvl, "nvlist/binary")); in main()
70 CHECK(!nvlist_exists_null(nvl, "nvlist/null")); in main()
71 CHECK(nvlist_exists_boo in main()
37 #define CHECK( global() macro
[all...]
H A Dnvlist_add_test.c37 #define CHECK(expr) do { \
55 CHECK(!nvlist_exists_null(nvl, "nvlist/null")); in main()
57 CHECK(nvlist_error(nvl) == 0); in main()
58 CHECK(nvlist_exists_null(nvl, "nvlist/null")); in main()
60 CHECK(!nvlist_exists_bool(nvl, "nvlist/bool/true")); in main()
62 CHECK(nvlist_error(nvl) == 0); in main()
63 CHECK(nvlist_exists_bool(nvl, "nvlist/bool/true")); in main()
65 CHECK(!nvlist_exists_bool(nvl, "nvlist/bool/false")); in main()
67 CHECK(nvlist_error(nvl) == 0); in main()
68 CHECK(nvlist_exists_boo in main()
38 #define CHECK( global() macro
[all...]
H A Dnvlist_get_test.c38 #define CHECK(expr) do { \
59 CHECK(!nvlist_exists_bool(nvl, "nvlist/bool/true")); in main()
61 CHECK(nvlist_error(nvl) == 0); in main()
62 CHECK(nvlist_get_bool(nvl, "nvlist/bool/true") == true); in main()
64 CHECK(!nvlist_exists_bool(nvl, "nvlist/bool/false")); in main()
66 CHECK(nvlist_error(nvl) == 0); in main()
67 CHECK(nvlist_get_bool(nvl, "nvlist/bool/false") == false); in main()
69 CHECK(!nvlist_exists_number(nvl, "nvlist/number/0")); in main()
71 CHECK(nvlist_error(nvl) == 0); in main()
72 CHECK(nvlist_get_numbe in main()
39 #define CHECK( global() macro
[all...]
H A Dnvlist_move_test.c39 #define CHECK(expr) do { \
60 CHECK(!nvlist_exists_string(nvl, "nvlist/string/")); in main()
62 CHECK(ptr != NULL); in main()
64 CHECK(nvlist_error(nvl) == 0); in main()
65 CHECK(nvlist_exists_string(nvl, "nvlist/string/")); in main()
66 CHECK(ptr == nvlist_get_string(nvl, "nvlist/string/")); in main()
68 CHECK(!nvlist_exists_string(nvl, "nvlist/string/x")); in main()
70 CHECK(ptr != NULL); in main()
72 CHECK(nvlist_error(nvl) == 0); in main()
73 CHECK(nvlist_exists_strin in main()
40 #define CHECK( global() macro
[all...]
/freebsd-src/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-src/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-src/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-src/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-src/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-src/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 …]
/freebsd-src/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 functio
[all...]
/freebsd-src/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-src/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-src/lib/libcasper/services/cap_grp/tests/
H A Dgrp_test.c49 #define CHECK(expr) do { \
258 CHECK(capgrp != NULL); in test_cmds()
267 CHECK(cap_grp_limit_cmds(capgrp, cmds, 7) == 0); in test_cmds()
268 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
269 CHECK(cap_grp_limit_groups(capgrp, names, 5, NULL, 0) == 0); in test_cmds()
271 CHECK(runtest_cmds(capgrp) == (SETGRENT | GETGRENT | GETGRENT_R | in test_cmds()
286 CHECK(capgrp != NULL); in test_cmds()
295 CHECK(cap_grp_limit_cmds(capgrp, cmds, 7) == 0); in test_cmds()
296 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds()
297 CHECK(cap_grp_limit_group in test_cmds()
50 #define CHECK( global() macro
[all...]
/freebsd-src/contrib/xz/src/liblzma/api/lzma/
H A Dcheck.h4 * \file lzma/check.h
19 * \brief Type of the integrity check (Check ID)
28 * No Check is calculated.
30 * Size of the Check field: 0 bytes
37 * Size of the Check field: 4 bytes
44 * Size of the Check field: 8 bytes
51 * Size of the Check field: 32 bytes
57 * \brief Maximum valid Check ID
59 * The .xz file format specification specifies 16 Check IDs (0-15). Some
60 * of them are only reserved, that is, no actual Check algorithm has been
[all …]
/freebsd-src/lib/libcasper/services/cap_pwd/tests/
H A Dpwd_test.c49 #define CHECK(expr) do { \
276 CHECK(cappwd != NULL); in test_cmds()
285 CHECK(cap_pwd_limit_cmds(cappwd, cmds, 7) == 0); in test_cmds()
286 CHECK(cap_pwd_limit_fields(cappwd, fields, 10) == 0); in test_cmds()
287 CHECK(cap_pwd_limit_users(cappwd, names, 6, NULL, 0) == 0); in test_cmds()
289 CHECK(runtest_cmds(cappwd) == (GETPWENT | GETPWENT_R | in test_cmds()
303 CHECK(cappwd != NULL); in test_cmds()
312 CHECK(cap_pwd_limit_cmds(cappwd, cmds, 7) == 0); in test_cmds()
313 CHECK(cap_pwd_limit_fields(cappwd, fields, 10) == 0); in test_cmds()
314 CHECK(cap_pwd_limit_user in test_cmds()
50 #define CHECK( global() macro
[all...]
/freebsd-src/contrib/libarchive/libarchive/test/
H A Dtest_write_format_zip_entry_size_unset.c116 /* Check for end of central directory signature */ in verify_contents()
118 /* Check for number of disk */ in verify_contents()
120 /* Check for disk where central directory starts */ in verify_contents()
122 /* Check for number of central directory records on disk */ in verify_contents()
124 /* Check for total number of central directory records */ in verify_contents()
126 /* Check for size of central directory and offset in verify_contents()
129 /* Check for empty comment length */ in verify_contents()
135 /* Check for entry in central directory signature */ in verify_contents()
137 /* Check for version used to write entry */ in verify_contents()
139 /* Check fo in verify_contents()
[all...]
/freebsd-src/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 …]

12345678910>>...382