[Initscripts-ng-commits] r955 - in /trunk/src/insserv/debian: changelog run-testsuite

pere at users.alioth.debian.org pere at users.alioth.debian.org
Fri Aug 14 20:49:44 UTC 2009


Author: pere
Date: Fri Aug 14 20:49:44 2009
New Revision: 955

URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=955
Log:
Add new test case test_insserv_virt_loop to reproduce a bug reported
by Raphael Geissert, where an incorrect insserv.conf will make
insserv hang forever.

Modified:
    trunk/src/insserv/debian/changelog
    trunk/src/insserv/debian/run-testsuite

Modified: trunk/src/insserv/debian/changelog
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/changelog?rev=955&op=diff
==============================================================================
--- trunk/src/insserv/debian/changelog (original)
+++ trunk/src/insserv/debian/changelog Fri Aug 14 20:49:44 2009
@@ -20,6 +20,9 @@
     setting (Closes: #540447).
   * Add new test case test_override_remove trying to reproduce bug #540866.
     No luck so far.
+  * Add new test case test_insserv_virt_loop to reproduce a bug reported
+    by Raphael Geissert, where an incorrect insserv.conf will make
+    insserv hang forever.
 
   [ Kel Modderman ]
   * Add new patch 20_install_perms_fixup.patch to install binary and

Modified: trunk/src/insserv/debian/run-testsuite
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/run-testsuite?rev=955&op=diff
==============================================================================
--- trunk/src/insserv/debian/run-testsuite (original)
+++ trunk/src/insserv/debian/run-testsuite Fri Aug 14 20:49:44 2009
@@ -1959,6 +1959,40 @@
     fi
     grep  "^hal: " ${initddir}/.depend.start | sed 's/^/  /'
 fi
+
+update_conf
+}
+
+#########################
+
+test_insserv_virt_loop() {
+echo
+echo "info: test insserv handle virtual facilities depending on itself."
+echo
+
+initdir_purge
+
+list_rclinks
+
+# If $local_fs depend on itself, the error is triggered.
+set +C
+cat <<'EOF' > $insconf
+$local_fs       +mountall $local_fs
+EOF
+set -C
+
+# This will hang and use unlimited amount of memory
+insertscript testscript <<'EOF'
+### BEGIN INIT INFO
+# Provides:          testscript
+# Required-Start:    $local_fs
+# Required-Stop:
+# Default-Start:     1
+# Default-Stop:
+### END INIT INFO
+EOF
+
+list_rclinks
 
 update_conf
 }
@@ -2001,3 +2035,5 @@
 test_script_in_runlevel
 test_x_interactive
 test_insserv_conf_makefile
+# Disabled as it uses 100% CPU and unlimited amount of memory forever
+#test_insserv_virt_loop




More information about the Initscripts-ng-commits mailing list