aboutsummaryrefslogtreecommitdiffstats
path: root/test/data
diff options
context:
space:
mode:
authorEli Zaretskii2019-12-05 16:38:17 +0200
committerEli Zaretskii2019-12-05 16:38:17 +0200
commit85f8aa1089e6fdbdf27b6f2c775e377faa79b19b (patch)
tree8e7ed8528bbb498d140775d183f9cc38dae44458 /test/data
parent3586fef263ccf3b68cc1289d55ef44a3d9ac7e1d (diff)
downloademacs-85f8aa1089e6fdbdf27b6f2c775e377faa79b19b.tar.gz
emacs-85f8aa1089e6fdbdf27b6f2c775e377faa79b19b.zip
Fix recent modifications in emacs-module-tests
* test/data/emacs-module/mod-test.c (extract_big_integer): Fix calculation of size of 'magnitude' when 'emacs_limb_t' is wider than 'unsigned long'. * test/src/emacs-module-tests.el (module--test-assertions--load-non-live-object) (module--test-assertions--call-emacs-from-gc): On MS-Windows, check also mod-test-emacs with ".exe" appended, before skipping the tests.
Diffstat (limited to 'test/data')
-rw-r--r--test/data/emacs-module/mod-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/data/emacs-module/mod-test.c b/test/data/emacs-module/mod-test.c
index b579c8a6278..5addf611472 100644
--- a/test/data/emacs-module/mod-test.c
+++ b/test/data/emacs-module/mod-test.c
@@ -401,7 +401,7 @@ extract_big_integer (emacs_env *env, emacs_value arg, mpz_t result)
401 mpz_set_ui (result, 0); 401 mpz_set_ui (result, 0);
402 return true; 402 return true;
403 } 403 }
404 enum { order = -1, size = sizeof (unsigned long), endian = 0, nails = 0 }; 404 enum { order = -1, size = sizeof (emacs_limb_t), endian = 0, nails = 0 };
405 assert (0 < count && count <= max_count); 405 assert (0 < count && count <= max_count);
406 emacs_limb_t *magnitude = malloc (count * size); 406 emacs_limb_t *magnitude = malloc (count * size);
407 if (magnitude == NULL) 407 if (magnitude == NULL)