Lines Matching refs:val
82 long val; in test_load_config() local
104 val = 0; in test_load_config()
105 if (!TEST_int_eq(NCONF_get_number(conf, "CA_default", "default_days", &val), 1) in test_load_config()
106 || !TEST_int_eq(val, 365)) { in test_load_config()
112 val = 0; in test_load_config()
113 if (!TEST_int_eq(NCONF_get_number(conf, "req", "default_bits", &val), 1) in test_load_config()
114 || !TEST_int_eq(val, 2048)) { in test_load_config()
128 val = 0; in test_load_config()
129 if (!TEST_int_eq(NCONF_get_number(conf, "null_sect", "activate", &val), 1) in test_load_config()
130 || !TEST_int_eq(val, 1)) { in test_load_config()
134 val = 0; in test_load_config()
135 if (!TEST_int_eq(NCONF_get_number(conf, "default_sect", "activate", &val), 1) in test_load_config()
136 || !TEST_int_eq(val, 1)) { in test_load_config()
140 val = 0; in test_load_config()
141 if (!TEST_int_eq(NCONF_get_number(conf, "legacy_sect", "activate", &val), 1) in test_load_config()
142 || !TEST_int_eq(val, 1)) { in test_load_config()
155 long val = 0; in test_check_null_numbers() local
161 || !TEST_true(NCONF_get_number(NULL, "missing", "FNORD", &val)) in test_check_null_numbers()
162 || !TEST_long_eq(val, 123)) { in test_check_null_numbers()
172 || !TEST_false(NCONF_get_number(NULL, "missing", "FNORD", &val))) { in test_check_null_numbers()
185 long val = 0; in test_check_overflow() local
191 if (!TEST_true(NCONF_get_number(NULL, "missing", "FNORD", &val)) in test_check_overflow()
192 || !TEST_long_eq(val, LONG_MAX)) in test_check_overflow()
199 if (!TEST_false(NCONF_get_number(NULL, "missing", "FNORD", &val))) in test_check_overflow()