From dab6742eeefe1f9c0a9f405f8a0c4f01256da4b9 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Thu, 16 Jun 2022 10:12:10 -0400 Subject: more on removing cgroups (#5200) --- test/root/cgroup.exp | 65 ---------------------------------------------------- 1 file changed, 65 deletions(-) delete mode 100755 test/root/cgroup.exp (limited to 'test/root/cgroup.exp') diff --git a/test/root/cgroup.exp b/test/root/cgroup.exp deleted file mode 100755 index 9a1bbe161..000000000 --- a/test/root/cgroup.exp +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/expect -f -# This file is part of Firejail project -# Copyright (C) 2014-2022 Firejail Authors -# License GPL v2 - -set timeout 10 -cd /home -spawn $env(SHELL) -match_max 100000 - - -send -- "mkdir /sys/fs/cgroup/systemd/firejail\r" -sleep 1 -send -- "ls /sys/fs/cgroup/systemd/firejail\r" -expect { - timeout {puts "TESTING ERROR 0\n";exit} - "tasks" -} - -send -- "firejail --name=\"join testing\" --cgroup=/sys/fs/cgroup/systemd/firejail/tasks\r" -expect { - timeout {puts "TESTING ERROR 1\n";exit} - -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" -} -sleep 2 - -spawn $env(SHELL) -send -- "wc -l /sys/fs/cgroup/systemd/firejail/tasks\r" -expect { - timeout {puts "TESTING ERROR 2\n";exit} - "3" -} - -spawn $env(SHELL) -send -- "firejail --join=\"join testing\"\r" -expect { - timeout {puts "TESTING ERROR 3\n";exit} - "Switching to pid" -} -expect { - timeout {puts "TESTING ERROR 4\n";exit} - -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" -} -sleep 1 -send -- "ps aux\r" -expect { - timeout {puts "TESTING ERROR 5\n";exit} - "/bin/bash" -} -expect { - timeout {puts "TESTING ERROR 6\n";exit} - "/bin/bash" -} - -after 100 - -spawn $env(SHELL) -send -- "wc -l /sys/fs/cgroup/systemd/firejail/tasks\r" -expect { - timeout {puts "TESTING ERROR 7\n";exit} - "3" -} -after 100 - -puts "\nall done\n" -- cgit v1.2.3-54-g00ecf