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]
}
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]
}
test {SET on the master should immediately propagate} {
r -1 set mykey bar
+ if {$::valgrind} {after 2000}
r 0 get mykey
} {bar}
}
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"
}
}