mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Disable new SIGABRT test on valgrind (#8013)
The crash reports cause false-positive warnings when run with valgrind.
This commit is contained in:
parent
639b73cd2a
commit
762be79f0b
@ -1,7 +1,7 @@
|
||||
set server_path [tmpdir server.log]
|
||||
set system_name [string tolower [exec uname -s]]
|
||||
|
||||
if {$system_name eq {linux} || $system_name eq {darwin}} {
|
||||
set server_path [tmpdir server.log]
|
||||
start_server [list overrides [list dir $server_path]] {
|
||||
test "Server is able to generate a stack trace on selected systems" {
|
||||
r config set watchdog-period 200
|
||||
@ -21,15 +21,19 @@ if {$system_name eq {linux} || $system_name eq {darwin}} {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
set server_path [tmpdir server1.log]
|
||||
start_server [list overrides [list dir $server_path]] {
|
||||
test "Crash report generated on SIGABRT" {
|
||||
set pid [s process_id]
|
||||
exec kill -SIGABRT $pid
|
||||
set pattern "*STACK TRACE*"
|
||||
set result [exec tail -1000 < [srv 0 stdout]]
|
||||
assert {[string match $pattern $result]}
|
||||
# Valgrind will complain that the process terminated by a signal, skip it.
|
||||
if {!$::valgrind} {
|
||||
set server_path [tmpdir server1.log]
|
||||
start_server [list overrides [list dir $server_path]] {
|
||||
test "Crash report generated on SIGABRT" {
|
||||
set pid [s process_id]
|
||||
exec kill -SIGABRT $pid
|
||||
set pattern "*STACK TRACE*"
|
||||
set result [exec tail -1000 < [srv 0 stdout]]
|
||||
assert {[string match $pattern $result]}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user