Skip to content

Commit 088b9ea

Browse files
committed
Test: handle new osx 'leaks' error.
Sometimes the process is still there but no longer in a state that can be checked (after being killed). This used to happen after a call to SHUTDOWN NOSAVE in the scripting unit, causing a false positive.
1 parent 4f68655 commit 088b9ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/support/server.tcl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ proc kill_server config {
4040
test "Check for memory leaks (pid $pid)" {
4141
set output {0 leaks}
4242
catch {exec leaks $pid} output
43-
if {[string match {*process does not exist*} $output]} {
43+
if {[string match {*process does not exist*} $output] ||
44+
[string match {*cannot examine*} $output]} {
4445
# In a few tests we kill the server process.
4546
set output "0 leaks"
4647
}

0 commit comments

Comments
 (0)