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/linkcopy.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/linkcopy.exp')
-rwxr-xr-x | test/fcopy/linkcopy.exp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/test/fcopy/linkcopy.exp b/test/fcopy/linkcopy.exp index dd91ac26f..7c085e552 100755 --- a/test/fcopy/linkcopy.exp +++ b/test/fcopy/linkcopy.exp | |||
@@ -12,6 +12,12 @@ 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/dircopy.exp dest\r" | 22 | send -- "fcopy src/dircopy.exp dest\r" |
17 | after 100 | 23 | after 100 |
@@ -19,7 +25,7 @@ after 100 | |||
19 | send -- "find dest\r" | 25 | send -- "find dest\r" |
20 | expect { | 26 | expect { |
21 | timeout {puts "TESTING ERROR 0\n";exit} | 27 | timeout {puts "TESTING ERROR 0\n";exit} |
22 | "dest/" | 28 | "dest" |
23 | } | 29 | } |
24 | expect { | 30 | expect { |
25 | timeout {puts "TESTING ERROR 1\n";exit} | 31 | timeout {puts "TESTING ERROR 1\n";exit} |
@@ -27,11 +33,11 @@ expect { | |||
27 | } | 33 | } |
28 | after 100 | 34 | after 100 |
29 | 35 | ||
30 | |||
31 | send -- "ls -al dest\r" | 36 | send -- "ls -al dest\r" |
32 | expect { | 37 | expect { |
33 | timeout {puts "TESTING ERROR 2\n";exit} | 38 | timeout {puts "TESTING ERROR 2\n";exit} |
34 | "lrwxrwxrwx" | 39 | "rwxr-xr-x" { puts "umask 0022\n" } |
40 | "rwxrwxr-x" { puts "umask 0002\n" } | ||
35 | } | 41 | } |
36 | after 100 | 42 | after 100 |
37 | send -- "stty -echo\r" | 43 | send -- "stty -echo\r" |
@@ -52,5 +58,7 @@ expect { | |||
52 | 58 | ||
53 | send -- "rm -fr dest/*\r" | 59 | send -- "rm -fr dest/*\r" |
54 | after 100 | 60 | after 100 |
61 | send -- "rm -f src/dircopy.exp\r" | ||
62 | after 100 | ||
55 | 63 | ||
56 | puts "\nall done\n" | 64 | puts "\nall done\n" |