2020-09-09 16:01:16 +03:00
|
|
|
# source tests/support/util.tcl
|
|
|
|
|
|
|
|
set testmodule [file normalize tests/modules/blockedclient.so]
|
|
|
|
|
|
|
|
start_server {tags {"modules"}} {
|
|
|
|
r module load $testmodule
|
|
|
|
|
|
|
|
test {Locked GIL acquisition} {
|
|
|
|
assert_match "OK" [r acquire_gil]
|
|
|
|
}
|
2020-10-11 17:21:58 +03:00
|
|
|
|
|
|
|
test {Locked GIL acquisition during multi} {
|
|
|
|
r multi
|
|
|
|
r acquire_gil
|
|
|
|
assert_equal {{Blocked client is not supported inside multi}} [r exec]
|
|
|
|
}
|
2020-09-09 16:01:16 +03:00
|
|
|
}
|