tests: zlogger nominally runs the daemon
[platform/core/system/dlog.git] / tests / dlog_test.in
index b9470aa..bb4b3f0 100644 (file)
@@ -728,6 +728,8 @@ if [ "$quick" -ne 1 ]; then
        dlog_test_tid_filtering_secure_logging $type
 fi
 
+DLOG_CONFIG_PATH="@datadir@/dlog-$type.conf.test"
+
 dlog_logger -t 0 &
 LOGGER=$!
 sleep 1
@@ -1100,18 +1102,7 @@ test_verifytime && ok || fail
 
 DLOG_PREV_PATH=$DLOG_CONFIG_PATH
 
-LOG_DETAILS="testing if config has control over redirecting to stdout (1/3)"
-DLOG_CONFIG_PATH="@datadir@/dlog-$type.conf.stdout_enable.1"
-
-test_config_redirect 1 1 1 1 && ok || fail
-
-LOG_DETAILS="testing if config has control over redirecting to stdout (2/3)"
-DLOG_CONFIG_PATH="@datadir@/dlog-$type.conf.stdout_enable.2"
-test_config_redirect 0 0 1 1 && ok || fail
-
-LOG_DETAILS="testing if config has control over redirecting to stdout (3/3)"
-DLOG_CONFIG_PATH="@datadir@/dlog-$type.conf.stdout_enable.3"
-test_config_redirect 1 1 0 0 && ok || fail
+dlog_test_stdout_redirect $type
 
 DLOG_CONFIG_PATH=$DLOG_PREV_PATH