[Initscripts-ng-commits] r570 - in /trunk/src/insserv/debian: changelog run-testsuite
pere at users.alioth.debian.org
pere at users.alioth.debian.org
Fri Feb 1 07:49:45 UTC 2008
Author: pere
Date: Fri Feb 1 07:49:45 2008
New Revision: 570
URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=570
Log:
* Add test case to detect insserv crashing when it find scripts
providing virtual system facilities.
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=570&op=diff
==============================================================================
--- trunk/src/insserv/debian/changelog (original)
+++ trunk/src/insserv/debian/changelog Fri Feb 1 07:49:45 2008
@@ -2,6 +2,8 @@
* Change patch 31_debian_conf to accept rsyslog and syslog-ng as
implementations for the $syslog facility.
+ * Add test case to detect insserv crashing when it find scripts
+ providing virtual system facilities.
-- Petter Reinholdtsen <pere at debian.org> Fri, 1 Feb 2008 08:27:22 +0100
Modified: trunk/src/insserv/debian/run-testsuite
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/run-testsuite?rev=570&op=diff
==============================================================================
--- trunk/src/insserv/debian/run-testsuite (original)
+++ trunk/src/insserv/debian/run-testsuite Fri Feb 1 07:49:45 2008
@@ -700,4 +700,41 @@
check_script_not_present 3 oldscript
check_script_not_present 6 oldscript
+echo
+echo "info: detect segfault caused by script providing virtual facility."
+echo
+
+rm -rf $initddir
+mkdir -p $initddir
+
+insertscript badheaderscript <<'EOF' || true
+### BEGIN INIT INFO
+# Provides: $syslog
+# Required-Start:
+# Required-Stop:
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+### END INIT INFO
+EOF
+
+# Problem is only triggered if there are start or stop symlinks for
+# the script present.
+mkdir -p $initddir/../rc2.d
+ln -s ../init.d/badheaderscript $initddir/../rc2.d/S02badheaderscript
+
+# This one segfaults
+insertscript okscript <<'EOF' || true
+### BEGIN INIT INFO
+# Provides: okscript
+# Required-Start: $syslog
+# Required-Stop:
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+### END INIT INFO
+EOF
+
+list_rclinks
+
+check_script_present 2 okscript
+
finish_test
More information about the Initscripts-ng-commits
mailing list