Use extract_time in test module.

* test/data/emacs-module/mod-test.c (Fmod_test_sleep_until): Use
extract_time for time argument.
(signal_wrong_type_argument): Remove unused function.

* test/src/emacs-module-tests.el (mod-test-sleep-until): Remove
unnecessary ‘float-time’.
This commit is contained in:
Philipp Stephani
2019-05-05 01:23:44 +02:00
parent 27a9377d42
commit e95ecbe146
2 changed files with 2 additions and 18 deletions

View File

@@ -313,7 +313,7 @@ Interactively, you can try hitting \\[keyboard-quit] to quit."
;; Interactively, run for 5 seconds to give the
;; user time to quit. In batch mode, run only
;; briefly since the user can't quit.
(float-time (time-add nil (if noninteractive 0.1 5)))
(time-add nil (if noninteractive 0.1 5))
;; should_quit or process_input
arg))
'finished))