Skip to content
Snippets Groups Projects
Commit 876dadc0 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Remove the temporary file before copying files to it, to avoid

permission problems if the files in the source tree has read-only
permissions.
parent b1940287
Branches
Tags
No related merge requests found
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
# Test parsing a broken aux-item file as a result of SIGWINCH. # Test parsing a broken aux-item file as a result of SIGWINCH.
set auxfile "lyskomd.0/aux-items-46.conf" set auxfile "lyskomd.0/aux-items-46.conf"
system "rm -f $auxfile"
system "cp $aux_item_default_conf_file $auxfile" system "cp $aux_item_default_conf_file $auxfile"
lyskomd_start "$auxfile" lyskomd_start "$auxfile"
...@@ -44,6 +45,7 @@ simple_expect "=1003 40 { 10104 10103 10102 10101 10100 35 34 33 32 31 30 29 28 ...@@ -44,6 +45,7 @@ simple_expect "=1003 40 { 10104 10103 10102 10101 10100 35 34 33 32 31 30 29 28
# Create a broken aux-item file. A mistake can happen so easily... # Create a broken aux-item file. A mistake can happen so easily...
system "rm -f $auxfile"
system "cp $srcdir/lyskomd.0/aux-items-bad.conf $auxfile" system "cp $srcdir/lyskomd.0/aux-items-bad.conf $auxfile"
system "kill -WINCH $lyskomd_pid" system "kill -WINCH $lyskomd_pid"
talk_to lyskomd talk_to lyskomd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment