@@ -9,7 +9,7 @@ func Test_suspend()
99
1010 let buf = term_start (' /bin/sh' )
1111 " Wait for shell prompt.
12- call WaitForAssert ({- > assert_match (' $ $' , term_getline (buf , ' .' ))})
12+ call WaitForAssert ({- > assert_match (' [$#] $' , term_getline (buf , ' .' ))})
1313
1414 call term_sendkeys (buf , v: progpath
1515 \ . " --clean -X"
@@ -26,7 +26,7 @@ func Test_suspend()
2626 \ " \<C-Z> " ]
2727 " Suspend and wait for shell prompt.
2828 call term_sendkeys (buf , suspend_cmd)
29- call WaitForAssert ({- > assert_match (' $ $' , term_getline (buf , ' .' ))})
29+ call WaitForAssert ({- > assert_match (' [$#] $' , term_getline (buf , ' .' ))})
3030
3131 " Without 'autowrite', buffer should not be written.
3232 call assert_equal (0 , filereadable (' Xfoo' ))
@@ -40,7 +40,7 @@ func Test_suspend()
4040 call assert_equal (0 , filereadable (' Xfoo' ))
4141 call term_sendkeys (buf , " :suspend\<CR> " )
4242 " Wait for shell prompt.
43- call WaitForAssert ({- > assert_match (' $ $' , term_getline (buf , ' .' ))})
43+ call WaitForAssert ({- > assert_match (' [$#] $' , term_getline (buf , ' .' ))})
4444 call assert_equal ([' foo' ], readfile (' Xfoo' ))
4545 call term_sendkeys (buf , " fg\<CR> " )
4646 call WaitForAssert ({- > assert_equal (' 1 foo' , term_getline (buf , ' .' ))})
0 commit comments