From 2bd593cbeb17f109f8f53c811671fa8166411421 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sat, 30 Apr 2016 12:19:53 -0400 Subject: make test-filters fixes --- test/filters/seccomp-chmod.exp | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'test/filters/seccomp-chmod.exp') diff --git a/test/filters/seccomp-chmod.exp b/test/filters/seccomp-chmod.exp index 0d52122d3..9ca084e7f 100755 --- a/test/filters/seccomp-chmod.exp +++ b/test/filters/seccomp-chmod.exp @@ -14,36 +14,38 @@ expect { } sleep 2 -send -- "touch testfile;pwd\r" +send -- "cd ~; echo done\r" expect { timeout {puts "TESTING ERROR 1\n";exit} - "/root" {puts "running as root"} - "/home" + "done" } -send -- "ls -l testfile;pwd\r" +send -- "touch testfile; echo done\r" expect { timeout {puts "TESTING ERROR 2\n";exit} - "testfile" + "done" } + +send -- "ls -l testfile; echo done\r" expect { timeout {puts "TESTING ERROR 3\n";exit} - "/root" {puts "running as root"} - "/home" + "testfile" +} +expect { + timeout {puts "TESTING ERROR 4\n";exit} + "done" } -send -- "chmod +x testfile;pwd\r" +send -- "chmod +x testfile; echo done\r" expect { - timeout {puts "TESTING ERROR 2\n";exit} + timeout {puts "TESTING ERROR 5\n";exit} "Bad system call" } expect { - timeout {puts "TESTING ERROR 3\n";exit} - "/root" {puts "running as root"} - "/home" + timeout {puts "TESTING ERROR 6\n";exit} + "done" } - send -- "exit\r" sleep 1 -puts "\n" +puts "\nall done\n" -- cgit v1.2.3-70-g09d2