test-parse-util.c revision 5c280bcc5a726e53d7108ad2bbed9cd47df6a7b6
9512fe850e98fdd448c638ca63fdd92a8a510255ahl/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
#include <locale.h>
#include <math.h>
#include "log.h"
#include "parse-util.h"
static void test_parse_boolean(void) {
static void test_parse_pid(void) {
assert_se(r == 0);
assert_se(r == 0);
static void test_parse_mode(void) {
mode_t m;
static void test_parse_size(void) {
static void test_parse_range(void) {
static void test_safe_atolli(void) {
assert_se(r == 0);
assert_se(r == 0);
assert_se(r == 0);
assert_se(r == 0);
static void test_safe_atou16(void) {
uint16_t l;
assert_se(r == 0);
assert_se(r == 0);
static void test_safe_atoi16(void) {
int16_t l;
assert_se(r == 0);
assert_se(r == 0);
assert_se(r == 0);
assert_se(r == 0);
static void test_safe_atod(void) {
assert_se(r == 0);
errno = 0;
assert_se(r == 0);
errno = 0;
assert_se(r == 0);
errno = 0;
log_open();