test: fix unescaped newlines in error messages (#7146)

Commands used to search and replace:

    $ git grep -IElz 'ERROR [0-9]+n"' -- test |
      xargs -0 perl -pi -e 's/(ERROR [0-9]+)n"/$1\\n"/'

Related commits:

* 63e16bfcd ("major cleanup and testing", 2016-11-13)
* 2155203b3 ("xdg macro testing", 2018-08-07)
This commit is contained in:
Kelvin M. Klann 2026-04-27 07:36:57 +00:00 committed by GitHub
parent 9a83128c69
commit 68427a2333
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -52,7 +52,7 @@ sleep 1
send -- "firejail --profile=./macro-blacklist.profile ls ~/Documents\r"
expect {
timeout {puts "TESTING ERROR 9n";exit}
timeout {puts "TESTING ERROR 9\n";exit}
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
}
expect {
@ -63,11 +63,11 @@ sleep 1
send -- "firejail --profile=./macro-blacklist.profile ls ~/Downloads\r"
expect {
timeout {puts "TESTING ERROR 11n";exit}
timeout {puts "TESTING ERROR 11\n";exit}
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
}
expect {
timeout {puts "TESTING ERROR 12n";exit}
timeout {puts "TESTING ERROR 12\n";exit}
"Permission denied"
}
sleep 1

View file

@ -34,7 +34,7 @@ send -- "firejail --get=test ~/lstesting\r"
sleep 1
send -- "cat lstesting\r"
expect {
timeout {puts "TESTING ERROR 2n";exit}
timeout {puts "TESTING ERROR 2\n";exit}
"my_testing"
}
after 100