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

pere at users.alioth.debian.org pere at users.alioth.debian.org
Mon Aug 10 20:17:26 UTC 2009


Author: pere
Date: Mon Aug 10 20:17:26 2009
New Revision: 954

URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=954
Log:
Add new test case test_override_remove trying to reproduce bug #540866.
No luck so far.

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=954&op=diff
==============================================================================
--- trunk/src/insserv/debian/changelog (original)
+++ trunk/src/insserv/debian/changelog Mon Aug 10 20:17:26 2009
@@ -18,6 +18,8 @@
   * Update README to reflect that dependency based boot sequencing is
     now the default in Debian.  Drop reference to obsolete CONCURRENCY
     setting (Closes: #540447).
+  * Add new test case test_override_remove trying to reproduce bug #540866.
+    No luck so far.
 
   [ 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=954&op=diff
==============================================================================
--- trunk/src/insserv/debian/run-testsuite (original)
+++ trunk/src/insserv/debian/run-testsuite Mon Aug 10 20:17:26 2009
@@ -409,6 +409,51 @@
 check_order S loop1 loop2
 rm -rf $overridedir
 }
+##########################################################################
+
+test_override_remove() {
+echo
+echo "info: Try to reproduce BTS #540866"
+echo
+
+initdir_purge
+
+addscript testscript <<'EOF'
+### BEGIN INIT INFO
+# Provides:          testscript
+# Required-Start:
+# Required-Stop:
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+### END INIT INFO
+EOF
+
+mkdir -p ${overridedir}/.
+cat >${overridedir}/testscript <<'EOF'
+### BEGIN INIT INFO
+# Provides:          testscript
+# Required-Start:
+# Required-Stop:
+# Default-Start:     2 4 5
+# Default-Stop:      0 1 6
+### END INIT INFO
+EOF
+
+insserv_reg testscript
+
+list_rclinks
+
+check_script_not_present 3 testscript
+
+echo info: Trying to remove the script
+
+insserv_del testscript
+
+list_rclinks
+
+check_script_not_present 3 testscript
+}
+
 ##########################################################################
 test_long_loop() {
 echo
@@ -1923,6 +1968,7 @@
 test_normal_sequence
 test_override_files
 test_override_loop
+test_override_remove
 test_long_loop
 test_combined_loop		# 1 non-fatal test failing
 test_fake_loop




More information about the Initscripts-ng-commits mailing list