From 3e4bbc3f218ea50dfd2121f7ecd55f6e78858900 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Mon, 8 Sep 2025 09:00:33 -0300 Subject: [PATCH] rlimit: rename test profiles for clarity Add the specific rlimit command name to the filename. Commands used to rename the files: git mv rlimit-bad1.profile rlimit-bad-fsize.profile git mv rlimit-bad2.profile rlimit-bad-nofile.profile git mv rlimit-bad3.profile rlimit-bad-nproc.profile git mv rlimit-bad4.profile rlimit-bad-sigpending.profile Added on commit d30ae468d ("testing", 2016-11-19). --- .../{rlimit-bad1.profile => rlimit-bad-fsize.profile} | 0 .../{rlimit-bad2.profile => rlimit-bad-nofile.profile} | 0 .../{rlimit-bad3.profile => rlimit-bad-nproc.profile} | 0 test/environment/rlimit-bad-profile.exp | 9 ++++----- ...rlimit-bad4.profile => rlimit-bad-sigpending.profile} | 0 5 files changed, 4 insertions(+), 5 deletions(-) rename test/environment/{rlimit-bad1.profile => rlimit-bad-fsize.profile} (100%) rename test/environment/{rlimit-bad2.profile => rlimit-bad-nofile.profile} (100%) rename test/environment/{rlimit-bad3.profile => rlimit-bad-nproc.profile} (100%) rename test/environment/{rlimit-bad4.profile => rlimit-bad-sigpending.profile} (100%) diff --git a/test/environment/rlimit-bad1.profile b/test/environment/rlimit-bad-fsize.profile similarity index 100% rename from test/environment/rlimit-bad1.profile rename to test/environment/rlimit-bad-fsize.profile diff --git a/test/environment/rlimit-bad2.profile b/test/environment/rlimit-bad-nofile.profile similarity index 100% rename from test/environment/rlimit-bad2.profile rename to test/environment/rlimit-bad-nofile.profile diff --git a/test/environment/rlimit-bad3.profile b/test/environment/rlimit-bad-nproc.profile similarity index 100% rename from test/environment/rlimit-bad3.profile rename to test/environment/rlimit-bad-nproc.profile diff --git a/test/environment/rlimit-bad-profile.exp b/test/environment/rlimit-bad-profile.exp index 336c73dd4..b1ba153ff 100755 --- a/test/environment/rlimit-bad-profile.exp +++ b/test/environment/rlimit-bad-profile.exp @@ -7,28 +7,27 @@ set timeout 10 spawn $env(SHELL) match_max 100000 - -send -- "firejail --profile=rlimit-bad1.profile\r" +send -- "firejail --profile=rlimit-bad-fsize.profile\r" expect { timeout {puts "TESTING ERROR 4\n";exit} "invalid rlimit-fsize in profile file. Only use positive numbers and K, M or G suffix." } after 100 -send -- "firejail --profile=rlimit-bad2.profile\r" +send -- "firejail --profile=rlimit-bad-nofile.profile\r" expect { timeout {puts "TESTING ERROR 5\n";exit} "invalid rlimit" } after 100 -send -- "firejail --profile=rlimit-bad3.profile\r" +send -- "firejail --profile=rlimit-bad-nproc.profile\r" expect { timeout {puts "TESTING ERROR 6\n";exit} "invalid rlimit" } after 100 -send -- "firejail --profile=rlimit-bad4.profile\r" +send -- "firejail --profile=rlimit-bad-sigpending.profile\r" expect { timeout {puts "TESTING ERROR 7\n";exit} "invalid rlimit" diff --git a/test/environment/rlimit-bad4.profile b/test/environment/rlimit-bad-sigpending.profile similarity index 100% rename from test/environment/rlimit-bad4.profile rename to test/environment/rlimit-bad-sigpending.profile