diff options
author | netblue30 <netblue30@protonmail.com> | 2022-01-11 20:57:49 -0500 |
---|---|---|
committer | netblue30 <netblue30@protonmail.com> | 2022-01-11 20:57:49 -0500 |
commit | f094521fe8d4eda1d5074aa14e2200f624adcdaf (patch) | |
tree | 793f262866412e93cdc64f8bee9d860898b1ab21 /test/fcopy/dircopy.exp | |
parent | fix scan-build (diff) | |
download | firejail-f094521fe8d4eda1d5074aa14e2200f624adcdaf.tar.gz firejail-f094521fe8d4eda1d5074aa14e2200f624adcdaf.tar.zst firejail-f094521fe8d4eda1d5074aa14e2200f624adcdaf.zip |
fix fcopy testing
Diffstat (limited to 'test/fcopy/dircopy.exp')
-rwxr-xr-x | test/fcopy/dircopy.exp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/fcopy/dircopy.exp b/test/fcopy/dircopy.exp index 0882561e5..a779f80cd 100755 --- a/test/fcopy/dircopy.exp +++ b/test/fcopy/dircopy.exp | |||
@@ -12,9 +12,21 @@ match_max 100000 | |||
12 | 12 | ||
13 | send -- "rm -fr dest/*\r" | 13 | send -- "rm -fr dest/*\r" |
14 | after 100 | 14 | after 100 |
15 | send -- "cd src\r" | ||
16 | after 100 | ||
17 | send -- "ln -s ../dircopy.exp dircopy.exp\r" | ||
18 | after 100 | ||
19 | send -- "cd ..\r" | ||
20 | after 100 | ||
15 | 21 | ||
16 | send -- "fcopy src dest\r" | 22 | send -- "fcopy src dest\r" |
17 | after 100 | 23 | after 100 |
24 | send -- "cd src\r" | ||
25 | after 100 | ||
26 | send -- "ln -s ../dircopy.exp dircopy.exp\r" | ||
27 | after 100 | ||
28 | send -- "cd ..\r" | ||
29 | after 100 | ||
18 | 30 | ||
19 | send -- "find dest\r" | 31 | send -- "find dest\r" |
20 | expect { | 32 | expect { |
@@ -135,5 +147,7 @@ expect { | |||
135 | 147 | ||
136 | send -- "rm -fr dest/*\r" | 148 | send -- "rm -fr dest/*\r" |
137 | after 100 | 149 | after 100 |
150 | send -- "rm -f src/dircopy.exp\r" | ||
151 | after 100 | ||
138 | 152 | ||
139 | puts "\nall done\n" | 153 | puts "\nall done\n" |