| /freebsd/tools/regression/capsicum/syscalls/ |
| H A D | cap_fcntls_limit.c | 49 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 D | cap_ioctls_limit.c | 50 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 D | iscsi-test.sh | 114 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 D | arith2.0 | 4 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 D | pathname1.0 | 8 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 D | cmdsubst2.0 | 4 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 D | cmdsubst1.0 | 4 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 D | arith10.0 | 4 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 …]
|
| /freebsd/contrib/netbsd-tests/include/sys/ |
| H A D | t_cdefs.c | 75 #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 D | expected.stdout.1 | 2 *** [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 D | t_fsplit.sh | 45 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 D | t_here.sh | 41 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 D | fptr_wlist.h | 39 * 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 …]
|
| /illumos-gate/usr/src/tools/smatch/src/Documentation/ |
| H A D | test-suite.rst | 11 ``check-name:`` *name* 15 ``check-description:`` *description ...* 19 ``check-command:`` *command arg ...* 23 of the library. check-command allows you to give a custom command to 29 ``check-arch-ignore:`` *arch[|...]* 31 ``check-arch-only:`` *arch[|...]* 36 ``check-assert:`` *condition* 41 ``check-cpp-if:`` *condition* 46 ``check-exit-value:`` *value* 48 The expected exit value of check-command. It defaults to 0. [all …]
|
| /illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/ |
| H A D | bnxe_hw_debug.c | 347 // Read register 0x2114 val and check if condition on val exist in lm_idle_chk() 349 // Read register 0x2114 val and check if condition on val exist in lm_idle_chk() 351 // Read register 0x2120 val and check if condition on val exist in lm_idle_chk() 353 // Read register 0x2814 val and check if condition on val exist in lm_idle_chk() 355 // Read register 0x281c val and check if condition on val exist in lm_idle_chk() 357 // Read register 0x2820 val and check if condition on val exist in lm_idle_chk() 359 // Read register PXP2_REG_PGL_EXP_ROM2 val and check if condition on val exist in lm_idle_chk() 361 // Read register 0x212c val in loop (incr by 4) and check if condition on val exist in lm_idle_chk() 363 // Read register 0x2104 val and check if condition on val exist in lm_idle_chk() 365 // Read register 0x2104 val and check if condition on val exist in lm_idle_chk() [all …]
|
| /freebsd/contrib/ntp/libjsmn/ |
| H A D | jsmn_test.c | 14 /* 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 D | t_copy_context.c | 41 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/heimdal/kadmin/ |
| H A D | rpc.c | 44 #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/crypto/krb5/src/util/support/ |
| H A D | t_json.c | 82 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/contrib/libarchive/libarchive/test/ |
| H A D | test_write_format_zip_entry_size_unset.c | 80 /* 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 …]
|
| /illumos-gate/usr/src/tools/scripts/ |
| H A D | git-pbchk.1onbld | 28 .Op Fl c Ar check Ns ... 31 .Op Fl c Ar check Ns ... 35 Check your workspace for common nits and putback-ending mistakes. 49 .It Fl c Ar check 51 .Ar check , 53 In this mode, individual files can be provided to check. 77 Check that putback comments follow the prescribed format 80 Check that each source file contains a copyright notice for the current 84 Check that C source files conform to the illumos C style rules 85 .It Header check: Cm hdrchk [all …]
|
| /freebsd/crypto/heimdal/lib/kadm5/ |
| H A D | marshall.c | 37 #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 …]
|
| /illumos-gate/usr/src/test/zfs-tests/cmd/libzfs_input_check/ |
| H A D | libzfs_input_check.c | 321 fnvlist_add_string(required, "message", "input check"); in test_log_history() 873 * Canonical reference check of /dev/zfs ioctl numbers. 881 #define CHECK(expr) do { \ in validate_ioc_values() macro 888 CHECK(ZFS_IOC_BASE + 0 == ZFS_IOC_POOL_CREATE); in validate_ioc_values() 889 CHECK(ZFS_IOC_BASE + 1 == ZFS_IOC_POOL_DESTROY); in validate_ioc_values() 890 CHECK(ZFS_IOC_BASE + 2 == ZFS_IOC_POOL_IMPORT); in validate_ioc_values() 891 CHECK(ZFS_IOC_BASE + 3 == ZFS_IOC_POOL_EXPORT); in validate_ioc_values() 892 CHECK(ZFS_IOC_BASE + 4 == ZFS_IOC_POOL_CONFIGS); in validate_ioc_values() 893 CHECK(ZFS_IOC_BASE + 5 == ZFS_IOC_POOL_STATS); in validate_ioc_values() 894 CHECK(ZFS_IOC_BASE + 6 == ZFS_IOC_POOL_TRYIMPORT); in validate_ioc_values() [all …]
|
| /freebsd/secure/lib/libcrypto/man/man5/ |
| H A D | fips_config.5 | 128 .IP \fBtls1\-prf\-ems\-check\fR 4 129 .IX Item "tls1-prf-ems-check" 137 .IP \fBsignature-digest-check\fR 4 138 .IX Item "signature-digest-check" 140 .IP \fBhkdf-digest-check\fR 4 141 .IX Item "hkdf-digest-check" 143 .IP \fBtls13\-kdf\-digest\-check\fR 4 144 .IX Item "tls13-kdf-digest-check" 146 .IP \fBtls1\-prf\-digest\-check\fR 4 147 .IX Item "tls1-prf-digest-check" [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
| H A D | libzfs_input_check.c | 310 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 …]
|