Enable test-daemon, test-log, test-watchdog by default
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 26 Feb 2016 14:10:48 +0000 (09:10 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 5 Mar 2016 02:45:45 +0000 (21:45 -0500)
Those should be safe to run, resulting in some messages in logs.

Makefile.am
src/test/test-daemon.c

index 0ee5232..c6f6bc5 100644 (file)
@@ -1388,11 +1388,8 @@ EXTRA_DIST += \
 manual_tests += \
        test-ns \
        test-hostname \
-       test-daemon \
        test-cgroup \
        test-install \
-       test-watchdog \
-       test-log \
        test-ipcrm \
        test-btrfs \
        test-acd \
@@ -1410,8 +1407,11 @@ manual_tests += \
 endif
 
 tests += \
+       test-daemon \
+       test-log \
        test-loopback \
        test-engine \
+       test-watchdog \
        test-cgroup-mask \
        test-job-type \
        test-env-replace \
index 4ce00f4..a7cb426 100644 (file)
@@ -38,27 +38,27 @@ int main(int argc, char*argv[]) {
 
         sd_notify(0,
                   "STATUS=Starting up");
-        sleep(5);
+        sleep(1);
 
         sd_notify(0,
                   "STATUS=Running\n"
                   "READY=1");
-        sleep(5);
+        sleep(1);
 
         sd_notify(0,
                   "STATUS=Reloading\n"
                   "RELOADING=1");
-        sleep(5);
+        sleep(1);
 
         sd_notify(0,
                   "STATUS=Running\n"
                   "READY=1");
-        sleep(5);
+        sleep(1);
 
         sd_notify(0,
                   "STATUS=Quitting\n"
                   "STOPPING=1");
-        sleep(5);
+        sleep(1);
 
         return EXIT_SUCCESS;
 }