]> diplodocus.org Git - nmh/blobdiff - test/locking/test-spoollocking
Editing of man/prev.man.
[nmh] / test / locking / test-spoollocking
index c795ce3dd7b50ea4e1d68e5acd27b681e7813d68..7edc16bea831e1461ea568af8aaf4e2f38c327b2 100755 (executable)
@@ -32,24 +32,26 @@ EOM
 # invoke "inc" for each locking algorithm
 #
 
 # invoke "inc" for each locking algorithm
 #
 
+mv -f ${MHMTSCONF} ${MHMTSCONF}.backup
+
 for locktype in $supported_locks
 do
 for locktype in $supported_locks
 do
-    mv -f ${MHMTSCONF} ${MHMTSCONF}.backup
-    sed -e '/^datalocking:/d' < ${MHMTSCONF}.backup > ${MHMTSCONF}
-    rm -f ${MHMTSCONF}.backup
+    sed -e '/^spoollocking:/d' < ${MHMTSCONF}.backup > ${MHMTSCONF}
 
     echo "spoollocking: $locktype" >> ${MHMTSCONF}
 
     run_test "inc -notruncate -width 80 -file $testmessage" \
 "Incorporating new mail into inbox...
 
 
     echo "spoollocking: $locktype" >> ${MHMTSCONF}
 
     run_test "inc -notruncate -width 80 -file $testmessage" \
 "Incorporating new mail into inbox...
 
-  11+ 12/17 No Such User       Hello, how are you?<<This is a test; will it wor
+  11+ 12/17 No Such User       Hello, how are you?<<This is a test; will it work
 $testmessage not zero'd"
 
     rmm 11
 $testmessage not zero'd"
 
     rmm 11
-
 done
 
 done
 
+#### Restore mts.conf so subsequent tests use expected spoollocking.
+mv -f ${MHMTSCONF}.backup ${MHMTSCONF}
+
 rm -f "$testmessage"
 
 exit ${failed:-0}
 rm -f "$testmessage"
 
 exit ${failed:-0}