mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
29 lines
No EOL
604 B
Text
29 lines
No EOL
604 B
Text
# We're testing that we can set a breakpoint on a specific assembly instruction
|
|
# and that when we re-run, we also stop at that instruction
|
|
|
|
#Leak()
|
|
#Sleep(5000)
|
|
|
|
ShowFile("src/Assembly.bf")
|
|
GotoText("//AssemblyTester_Test")
|
|
ToggleBreakpoint()
|
|
RunWithCompiling()
|
|
|
|
StepInto()
|
|
ShowDisassemblyAtStack()
|
|
|
|
GotoTextSkip("call", 1)
|
|
AdjustCursor(0, 1)
|
|
ToggleBreakpoint()
|
|
CloseCurrentDocument()
|
|
|
|
Continue()
|
|
AssertEvalEquals("a", "2")
|
|
|
|
StopRunning()
|
|
CloseCurrentDocument()
|
|
|
|
# Make sure when we re-run that we're still stopping after the second IncVal call
|
|
RunWithCompiling()
|
|
Continue()
|
|
AssertEvalEquals("a", "2") |