summaryrefslogtreecommitdiff
path: root/tests/support/test.tcl
diff options
context:
space:
mode:
authorbodong.ybd <bodong.ybd@alibaba-inc.com>2020-09-08 10:45:03 +0800
committerbodong.ybd <bodong.ybd@alibaba-inc.com>2020-09-08 14:27:53 +0800
commitf22fa9594d536cb53f83ed8e508c03d4278778b0 (patch)
tree30b10a57de4305afb7025194b64b647d53bc452a /tests/support/test.tcl
parentb491d477c3062d1fb064a794d74643c82d1c4adc (diff)
downloadredis-f22fa9594d536cb53f83ed8e508c03d4278778b0.tar.gz
Tests: Some fixes for macOS
1) cur_test: when restart_server, "no such variable" error occurs ./runtest --single integration/rdb test {client freed during loading} SET ::cur_test restart_server kill_server test "Check for memory leaks (pid $pid)" SET ::cur_test UNSET ::cur_test UNSET ::cur_test // This global variable has been unset. 2) `ps --ppid` not available on macOS platform, can be replaced with `pgrep -P pid`.
Diffstat (limited to 'tests/support/test.tcl')
-rw-r--r--tests/support/test.tcl1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/support/test.tcl b/tests/support/test.tcl
index f5b4c8bef..54d323fa2 100644
--- a/tests/support/test.tcl
+++ b/tests/support/test.tcl
@@ -190,5 +190,4 @@ proc test {name code {okpattern undefined} {options undefined}} {
send_data_packet $::test_server_fd err "Detected a memory leak in test '$name': $output"
}
}
- unset ::cur_test
}