]> code.delx.au - gnu-emacs/commitdiff
Update mod-test-sum-test
authorKen Brown <kbrown@cornell.edu>
Sun, 29 Nov 2015 16:23:32 +0000 (11:23 -0500)
committerKen Brown <kbrown@cornell.edu>
Sun, 29 Nov 2015 16:23:32 +0000 (11:23 -0500)
* modules/mod-test/test.el (mod-test-sum-test): Update to
accommodate the lack of dladdr on Cygwin.

modules/mod-test/test.el

index 3cb4e9344cad3085fce1e754584f34d600cbb96a..a0abdab49e532358357bf815b57db06e940c1599 100644 (file)
@@ -36,7 +36,9 @@
                 (string-match
                  (if (eq system-type 'windows-nt)
                      "#<module function at \\(0x\\)?[0-9a-fA-F]+ from .*>"
-                   "#<module function Fmod_test_sum from .*>")
+                   (if (eq system-type 'cygwin)
+                       "#<module function at \\(0x\\)?[0-9a-fA-F]+>"
+                     "#<module function Fmod_test_sum from .*>"))
                  (nth 1 descr))))
     (should (= (nth 2 descr) 3)))
   (should-error (mod-test-sum "1" 2) :type 'wrong-type-argument)