Fix return type of make_time.

make_time is documented to return a (TICKS . HZ) pair, so we can’t use
make_lisp_time.  Introduce a new conversion function instead.

* src/emacs-module.c (module_make_time): Use timespec_to_lisp to
correct return type.

* src/timefns.c (timespec_to_lisp): New function.
(make_lisp_time): Use it.

* test/src/emacs-module-tests.el (mod-test-add-nanosecond/valid):
Check return type.
1 job for master in 8 minutes and 56 seconds (queued for 2 seconds)
Status Job ID Name Coverage
failed #1514


Name Stage Failure
test-all Test
Makefile:394: recipe for target 'timefns.o' failed
make[2]: Leaving directory '/builds/emacs/emacs/src'
Makefile:423: recipe for target 'src' failed
make[1]: Leaving directory '/builds/emacs/emacs'
Makefile:1116: recipe for target 'bootstrap' failed
make[2]: *** [timefns.o] Error 1
make[1]: *** [src] Error 2
make: *** [bootstrap] Error 2
ERROR: Job failed: exit code 1