From 912ec614b6c059c9cbc1028ddd56b13beb7ad393 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Tue, 5 Sep 2017 19:15:39 -0400 Subject: testing --- test/root/seccomp-chown.exp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'test/root/seccomp-chown.exp') diff --git a/test/root/seccomp-chown.exp b/test/root/seccomp-chown.exp index 7d9da5e5a..174a35ffe 100755 --- a/test/root/seccomp-chown.exp +++ b/test/root/seccomp-chown.exp @@ -14,33 +14,32 @@ expect { } sleep 2 -send -- "touch testfile;pwd\r" +send -- "touch testfile; echo done\r" expect { timeout {puts "TESTING ERROR 1\n";exit} - "/root" {puts "running as root"} - "/home" + "done" } +after 100 -send -- "ls -l testfile;pwd\r" +send -- "ls -l testfile; echo done\r" expect { timeout {puts "TESTING ERROR 2\n";exit} "testfile" } expect { timeout {puts "TESTING ERROR 3\n";exit} - "/root" {puts "running as root"} - "/home" + "done" } +after 100 -send -- "chown netblue:netblue testfile;pwd\r" +send -- "chown netblue:netblue testfile; echo done\r" expect { timeout {puts "TESTING ERROR 2\n";exit} "Bad system call" } expect { timeout {puts "TESTING ERROR 3\n";exit} - "/root" {puts "running as root"} - "/home" + "done" } -- cgit v1.2.3-70-g09d2