mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
new test engine valgrind support
This commit is contained in:
parent
c7c16a32a7
commit
4c378d7f6c
@ -32,6 +32,7 @@ tags {"aof"} {
|
||||
|
||||
start_server_aof [list dir $server_path] {
|
||||
test "Unfinished MULTI: Server should not have been started" {
|
||||
if {$::valgrind} {after 2000}
|
||||
assert_equal 0 [is_alive $srv]
|
||||
}
|
||||
|
||||
@ -49,6 +50,7 @@ tags {"aof"} {
|
||||
|
||||
start_server_aof [list dir $server_path] {
|
||||
test "Short read: Server should not have been started" {
|
||||
if {$::valgrind} {after 2000}
|
||||
assert_equal 0 [is_alive $srv]
|
||||
}
|
||||
|
||||
|
@ -54,6 +54,7 @@ start_server {tags {"repl"}} {
|
||||
|
||||
test {SET on the master should immediately propagate} {
|
||||
r -1 set mykey bar
|
||||
if {$::valgrind} {after 2000}
|
||||
r 0 get mykey
|
||||
} {bar}
|
||||
}
|
||||
|
@ -19,10 +19,7 @@ proc check_valgrind_errors stderr {
|
||||
if {![regexp -- {ERROR SUMMARY: 0 errors} $buf] ||
|
||||
(![regexp -- {definitely lost: 0 bytes} $buf] &&
|
||||
![regexp -- {no leaks are possible} $buf])} {
|
||||
puts "*** VALGRIND ERRORS ***"
|
||||
puts $buf
|
||||
puts "-----------------------"
|
||||
append ::valgrind_errors "$buf\n\n"
|
||||
send_data_packet $::test_server_fd err "Valgrind error: $buf\n"
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user