Skip to content

Commit

Permalink
Adding a test for the lua debugger bugfix. I don't understand TCL ver…
Browse files Browse the repository at this point in the history
…y well but tried to implement as close to the patterns in the file as possible.
  • Loading branch information
parthpatel committed Apr 11, 2024
1 parent 391fc3b commit 4260be5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/unit/scripting.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1547,6 +1547,19 @@ start_server {tags {"scripting needs:debug external:skip"}} {
reconnect
assert_equal [r ping] {PONG}
}

test {Test scripting debug lua server invocations} {
r script debug sync
r eval {return 'hello'} 0
set cmd "*2\r\n\$6\r\nserver\r\n\$4\r\nping\r\n"
r write $cmd
r flush
set ret [r read]
puts $ret
assert_match {*PONG*} $ret
reconnect
assert_equal [r ping] {PONG}
}
}

start_server {tags {"scripting external:skip"}} {
Expand Down

0 comments on commit 4260be5

Please sign in to comment.