diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/fs_chroot.exp | 2 | ||||
-rwxr-xr-x | test/ignore.exp | 2 | ||||
-rwxr-xr-x | test/option-trace.exp | 10 | ||||
-rwxr-xr-x | test/pid.exp | 2 | ||||
-rwxr-xr-x | test/trace.exp | 29 |
5 files changed, 22 insertions, 23 deletions
diff --git a/test/fs_chroot.exp b/test/fs_chroot.exp index 4ddf8d32a..cc0d82179 100755 --- a/test/fs_chroot.exp +++ b/test/fs_chroot.exp | |||
@@ -54,7 +54,7 @@ sleep 1 | |||
54 | send -- "ps aux |wc -l; pwd\r" | 54 | send -- "ps aux |wc -l; pwd\r" |
55 | expect { | 55 | expect { |
56 | timeout {puts "TESTING ERROR 5\n";exit} | 56 | timeout {puts "TESTING ERROR 5\n";exit} |
57 | "5" | 57 | "6" |
58 | } | 58 | } |
59 | expect { | 59 | expect { |
60 | timeout {puts "TESTING ERROR 6\n";exit} | 60 | timeout {puts "TESTING ERROR 6\n";exit} |
diff --git a/test/ignore.exp b/test/ignore.exp index ab7f0655f..8f8076fb3 100755 --- a/test/ignore.exp +++ b/test/ignore.exp | |||
@@ -30,7 +30,7 @@ sleep 1 | |||
30 | send -- "ps aux | wc -l\r" | 30 | send -- "ps aux | wc -l\r" |
31 | expect { | 31 | expect { |
32 | timeout {puts "TESTING ERROR 4\n";exit} | 32 | timeout {puts "TESTING ERROR 4\n";exit} |
33 | "4" | 33 | "5" |
34 | } | 34 | } |
35 | sleep 1 | 35 | sleep 1 |
36 | send -- "exit\r" | 36 | send -- "exit\r" |
diff --git a/test/option-trace.exp b/test/option-trace.exp index b20ef9ef9..6fd113e2b 100755 --- a/test/option-trace.exp +++ b/test/option-trace.exp | |||
@@ -11,17 +11,17 @@ expect { | |||
11 | } | 11 | } |
12 | expect { | 12 | expect { |
13 | timeout {puts "TESTING ERROR 1\n";exit} | 13 | timeout {puts "TESTING ERROR 1\n";exit} |
14 | "1:bash:open /dev/tty" {puts "64bit\n"} | 14 | "bash:open /dev/tty" {puts "64bit\n"} |
15 | "1:bash:open64 /dev/tty" {puts "32bit\n"} | 15 | "bash:open64 /dev/tty" {puts "32bit\n"} |
16 | } | 16 | } |
17 | expect { | 17 | expect { |
18 | timeout {puts "TESTING ERROR 2\n";exit} | 18 | timeout {puts "TESTING ERROR 2\n";exit} |
19 | "1:bash:fopen /etc/passwd" | 19 | "bash:fopen /etc/passwd" |
20 | } | 20 | } |
21 | expect { | 21 | expect { |
22 | timeout {puts "TESTING ERROR 3\n";exit} | 22 | timeout {puts "TESTING ERROR 3\n";exit} |
23 | "1:bash:access /etc/terminfo/x/xterm" {puts "debian\n"} | 23 | "bash:access /etc/terminfo/x/xterm" {puts "debian\n"} |
24 | "1:bash:access /usr/share/terminfo/x/xterm" {puts "arch\n"} | 24 | "bash:access /usr/share/terminfo/x/xterm" {puts "arch\n"} |
25 | } | 25 | } |
26 | 26 | ||
27 | sleep 1 | 27 | sleep 1 |
diff --git a/test/pid.exp b/test/pid.exp index 0baf3af0e..d382feb96 100755 --- a/test/pid.exp +++ b/test/pid.exp | |||
@@ -37,7 +37,7 @@ sleep 1 | |||
37 | send -- "ps aux |wc -l; pwd\r" | 37 | send -- "ps aux |wc -l; pwd\r" |
38 | expect { | 38 | expect { |
39 | timeout {puts "TESTING ERROR 5\n";exit} | 39 | timeout {puts "TESTING ERROR 5\n";exit} |
40 | "5" | 40 | "6" |
41 | } | 41 | } |
42 | expect { | 42 | expect { |
43 | timeout {puts "TESTING ERROR 6\n";exit} | 43 | timeout {puts "TESTING ERROR 6\n";exit} |
diff --git a/test/trace.exp b/test/trace.exp index 2b5003d83..21dd6a559 100755 --- a/test/trace.exp +++ b/test/trace.exp | |||
@@ -11,7 +11,7 @@ expect { | |||
11 | } | 11 | } |
12 | expect { | 12 | expect { |
13 | timeout {puts "TESTING ERROR 1\n";exit} | 13 | timeout {puts "TESTING ERROR 1\n";exit} |
14 | "1:mkdir:mkdir ttt" | 14 | "mkdir:mkdir ttt" |
15 | } | 15 | } |
16 | sleep 1 | 16 | sleep 1 |
17 | 17 | ||
@@ -22,7 +22,7 @@ expect { | |||
22 | } | 22 | } |
23 | expect { | 23 | expect { |
24 | timeout {puts "TESTING ERROR 3\n";exit} | 24 | timeout {puts "TESTING ERROR 3\n";exit} |
25 | "1:rmdir:rmdir ttt" | 25 | "rmdir:rmdir ttt" |
26 | } | 26 | } |
27 | sleep 1 | 27 | sleep 1 |
28 | 28 | ||
@@ -33,8 +33,8 @@ expect { | |||
33 | } | 33 | } |
34 | expect { | 34 | expect { |
35 | timeout {puts "TESTING ERROR 5\n";exit} | 35 | timeout {puts "TESTING ERROR 5\n";exit} |
36 | "1:touch:open ttt" {puts "OK\n";} | 36 | "touch:open ttt" {puts "OK\n";} |
37 | "1:touch:open64 ttt" {puts "OK\n";} | 37 | "touch:open64 ttt" {puts "OK\n";} |
38 | } | 38 | } |
39 | sleep 1 | 39 | sleep 1 |
40 | 40 | ||
@@ -45,7 +45,7 @@ expect { | |||
45 | } | 45 | } |
46 | expect { | 46 | expect { |
47 | timeout {puts "TESTING ERROR 7\n";exit} | 47 | timeout {puts "TESTING ERROR 7\n";exit} |
48 | "1:rm:unlinkat ttt" | 48 | "rm:unlinkat ttt" |
49 | } | 49 | } |
50 | sleep 1 | 50 | sleep 1 |
51 | 51 | ||
@@ -56,26 +56,26 @@ expect { | |||
56 | } | 56 | } |
57 | expect { | 57 | expect { |
58 | timeout {puts "TESTING ERROR 8.2\n";exit} | 58 | timeout {puts "TESTING ERROR 8.2\n";exit} |
59 | "1:bash:open /dev/tty" {puts "OK\n";} | 59 | "bash:open /dev/tty" {puts "OK\n";} |
60 | "1:bash:open64 /dev/tty" {puts "OK\n";} | 60 | "bash:open64 /dev/tty" {puts "OK\n";} |
61 | } | 61 | } |
62 | expect { | 62 | expect { |
63 | timeout {puts "TESTING ERROR 8.3\n";exit} | 63 | timeout {puts "TESTING ERROR 8.3\n";exit} |
64 | "1:wget:fopen64 /etc/wgetrc" {puts "OK\n";} | 64 | "wget:fopen64 /etc/wgetrc" {puts "OK\n";} |
65 | "1:wget:fopen /etc/wgetrc" {puts "OK\n";} | 65 | "wget:fopen /etc/wgetrc" {puts "OK\n";} |
66 | } | 66 | } |
67 | expect { | 67 | expect { |
68 | timeout {puts "TESTING ERROR 8.4\n";exit} | 68 | timeout {puts "TESTING ERROR 8.4\n";exit} |
69 | "1:wget:fopen /etc/hosts" | 69 | "wget:fopen /etc/hosts" |
70 | } | 70 | } |
71 | expect { | 71 | expect { |
72 | timeout {puts "TESTING ERROR 8.5\n";exit} | 72 | timeout {puts "TESTING ERROR 8.5\n";exit} |
73 | "1:wget:connect" | 73 | "wget:connect" |
74 | } | 74 | } |
75 | expect { | 75 | expect { |
76 | timeout {puts "TESTING ERROR 8.6\n";exit} | 76 | timeout {puts "TESTING ERROR 8.6\n";exit} |
77 | "1:wget:fopen64 index.html" {puts "OK\n";} | 77 | "wget:fopen64 index.html" {puts "OK\n";} |
78 | "1:wget:fopen index.html" {puts "OK\n";} | 78 | "wget:fopen index.html" {puts "OK\n";} |
79 | } | 79 | } |
80 | sleep 1 | 80 | sleep 1 |
81 | 81 | ||
@@ -86,10 +86,9 @@ expect { | |||
86 | } | 86 | } |
87 | expect { | 87 | expect { |
88 | timeout {puts "TESTING ERROR 10\n";exit} | 88 | timeout {puts "TESTING ERROR 10\n";exit} |
89 | "1:rm:unlinkat index.html" | 89 | "rm:unlinkat index.html" |
90 | } | 90 | } |
91 | sleep 1 | 91 | sleep 1 |
92 | 92 | ||
93 | 93 | ||
94 | puts "\nall done\n" | 94 | puts "\nall done\n" |
95 | |||