diff options
author | 2021-03-28 11:09:40 -0400 | |
---|---|---|
committer | 2021-03-28 11:09:40 -0400 | |
commit | c72e64a5f9d44d5fd11683ef8209449dfb356213 (patch) | |
tree | d5aa696661bae67146eab2002cb23a5a12b4688f /test | |
parent | a9938c65d64546f876697e1831156f00ac569cfa (diff) | |
download | textadept-c72e64a5f9d44d5fd11683ef8209449dfb356213.tar.gz textadept-c72e64a5f9d44d5fd11683ef8209449dfb356213.zip |
Updated debugger tests with new project commands.
Diffstat (limited to 'test')
-rw-r--r-- | test/test.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test.lua b/test/test.lua index 3bd20223..fee7ac7a 100644 --- a/test/test.lua +++ b/test/test.lua @@ -4004,7 +4004,9 @@ end function test_debugger_ansi_c() local debugger = require('debugger') - require('debugger.ansi_c').logging = true + local project_commands = debugger.project_commands + debugger.project_commands = {} -- reset + require('debugger.gdb').logging = true local function wait() os.spawn('sleep 0.2'):wait() ui.update() @@ -4109,10 +4111,13 @@ function test_debugger_ansi_c() buffer:close(true) os.execute('rm -r ' .. dir) ui.tabs = tabs + debugger.project_commands = project_commands -- restore end function test_debugger_lua() local debugger = require('debugger') + local project_commands = debugger.project_commands + debugger.project_commands = {} -- reset local function wait() for i = 1, 10 do os.spawn('sleep 0.1'):wait() @@ -4203,6 +4208,7 @@ function test_debugger_lua() view:unsplit() buffer:close(true) ui.tabs = tabs + debugger.project_commands = project_commands -- restore end function test_export_interactive() |