aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormitchell <70453897+orbitalquark@users.noreply.github.com>2021-03-28 11:09:40 -0400
committermitchell <70453897+orbitalquark@users.noreply.github.com>2021-03-28 11:09:40 -0400
commitc72e64a5f9d44d5fd11683ef8209449dfb356213 (patch)
treed5aa696661bae67146eab2002cb23a5a12b4688f /test
parenta9938c65d64546f876697e1831156f00ac569cfa (diff)
downloadtextadept-c72e64a5f9d44d5fd11683ef8209449dfb356213.tar.gz
textadept-c72e64a5f9d44d5fd11683ef8209449dfb356213.zip
Updated debugger tests with new project commands.
Diffstat (limited to 'test')
-rw-r--r--test/test.lua8
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()