Skip to content

Commit

Permalink
Harder repl test
Browse files Browse the repository at this point in the history
  • Loading branch information
svaante committed Jan 1, 2024
1 parent 17c5601 commit e3ed989
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions dape-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ Helper for `dape-test--with-files'."
(dape-test--should
(not (process-list)))
(advice-remove 'yes-or-no-p 'always-yes)
(dolist (buffer buffers)
(kill-buffer buffer))
;; clean up files
(delete-directory temp-dir t)))))

Expand Down Expand Up @@ -542,21 +544,19 @@ Expects line with string \"breakpoint\" in source."
:program (buffer-file-name main-buffer)
:cwd default-directory)
;; at breakpoint and stopped
(dape-test--should
(eq dape--state 'stopped))
(dape-test--should (dape--stopped-threads))
(with-current-buffer main-buffer
(dape-test--should
(and (= (line-number-at-pos)
(dape-test--line-at-regex "breakpoint"))
(eq dape--state 'stopped))))
(= (line-number-at-pos)
(dape-test--line-at-regex "breakpoint"))))
(pop-to-buffer "*dape-repl*")
(insert "next")
(comint-send-input)
(dape-test--should (dape--stopped-threads))
(with-current-buffer main-buffer
(dape-test--should
(and (= (line-number-at-pos)
(dape-test--line-at-regex "second line"))
(eq dape--state 'stopped))))
(= (line-number-at-pos)
(dape-test--line-at-regex "second line"))))
(insert "next")
(comint-send-input)
(with-current-buffer main-buffer
Expand Down

0 comments on commit e3ed989

Please sign in to comment.