Fix crashing emacs-module tests on MS-Windows
commit7fc27ea70bc7dc24776b2c098ac970f2f21e37fb
authorEli Zaretskii <eliz@gnu.org>
Wed, 9 Aug 2017 17:15:46 +0000 (9 20:15 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 9 Aug 2017 17:15:46 +0000 (9 20:15 +0300)
tree6506847574eda46651ac325d03a000fb80fd437c
parentda4438e14f1c55808937872b6d651a807404daa2
Fix crashing emacs-module tests on MS-Windows

* src/w32fns.c (syms_of_w32fns) <w32-disable-abort-dialog>: New
variable.
(emacs_abort): If w32-disable-abort-dialog is non-nil, abort right
away, without displaying the Abort dialog, which waits for the user.

* test/src/emacs-module-tests.el (module--test-assertion): Run the
inferior Emacs with the w32 abort dialog disabled.  Expect the
status of the aborted Emacs sub-process to be 3 on MS-Windows and
2 on MS-DOS.
src/w32fns.c
test/src/emacs-module-tests.el