Fix test timing issue, so it passes on llvm and gdb
This commit is contained in:
parent
e884a5f71c
commit
9faa8aa6f7
1 changed files with 5 additions and 5 deletions
|
|
@ -190,7 +190,7 @@ function! Test_SimpleWatches()
|
||||||
%bwipe!
|
%bwipe!
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! Test_ExpandWatch()
|
function! Test_ExpandVariables()
|
||||||
let fn = 'testdata/cpp/simple/struct.cpp'
|
let fn = 'testdata/cpp/simple/struct.cpp'
|
||||||
call s:StartDebugging( #{ fn: fn, line: 24, col: 1, launch: #{
|
call s:StartDebugging( #{ fn: fn, line: 24, col: 1, launch: #{
|
||||||
\ configuration: 'run-to-breakpoint'
|
\ configuration: 'run-to-breakpoint'
|
||||||
|
|
@ -272,6 +272,7 @@ function! Test_ExpandWatch()
|
||||||
\ } )
|
\ } )
|
||||||
|
|
||||||
call vimspector#StepOver()
|
call vimspector#StepOver()
|
||||||
|
call vimspector#test#signs#AssertCursorIsAtLineInBuffer( fn, 28, 1 )
|
||||||
call WaitForAssert( {->
|
call WaitForAssert( {->
|
||||||
\ assert_equal(
|
\ assert_equal(
|
||||||
\ [
|
\ [
|
||||||
|
|
@ -284,7 +285,6 @@ function! Test_ExpandWatch()
|
||||||
\ )
|
\ )
|
||||||
\ } )
|
\ } )
|
||||||
|
|
||||||
" Exapand - see that the changed value is highlighted
|
|
||||||
call win_gotoid( g:vimspector_session_windows.variables )
|
call win_gotoid( g:vimspector_session_windows.variables )
|
||||||
call setpos( '.', [ 0, 2, 1 ] )
|
call setpos( '.', [ 0, 2, 1 ] )
|
||||||
call feedkeys( "\<CR>", 'xt' )
|
call feedkeys( "\<CR>", 'xt' )
|
||||||
|
|
@ -293,10 +293,10 @@ function! Test_ExpandWatch()
|
||||||
\ [
|
\ [
|
||||||
\ '- Scope: Locals',
|
\ '- Scope: Locals',
|
||||||
\ ' - t (Test): {...}',
|
\ ' - t (Test): {...}',
|
||||||
\ ' - i (int): 1',
|
\ ' \*- i (int): 1',
|
||||||
\ ' \*- c (char): 99 ''c''',
|
\ ' \*- c (char): 99 ''c''',
|
||||||
\ ' - fffff (float): 0',
|
\ ' \*- fffff (float): 0',
|
||||||
\ ' + another_test (AnotherTest):\( {...}\)\?',
|
\ ' \*+ another_test (AnotherTest):\( {...}\)\?',
|
||||||
\ ],
|
\ ],
|
||||||
\ getbufline( winbufnr( g:vimspector_session_windows.variables ),
|
\ getbufline( winbufnr( g:vimspector_session_windows.variables ),
|
||||||
\ 1,
|
\ 1,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue