all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: [Emacs-diffs] emacs-25 33ec2ff: Add one more mod-test test
       [not found] ` <E1a1J2w-00013J-0o@vcs.savannah.gnu.org>
@ 2015-11-29  2:12   ` Ken Brown
  2015-11-29  3:42     ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Ken Brown @ 2015-11-29  2:12 UTC (permalink / raw)
  To: emacs-devel, Eli Zaretskii

On 11/24/2015 2:14 PM, Eli Zaretskii wrote:
> +  (let ((descr (should-error (mod-test-sum 1 2 3))))
> +    (should (eq (car descr) 'wrong-number-of-arguments))
> +    (should (stringp (nth 1 descr)))
> +    (should (eq 0
> +                (string-match
> +                 (if (eq system-type 'windows-nt)
> +                     "#<module function at \\(0x\\)?[0-9a-fA-F]+ from .*>"
> +                   "#<module function Fmod_test_sum from .*>")
> +                 (nth 1 descr))))

This fails on Cygwin because

   (should-error (mod-test-sum 1 2 3))

evaluates to

   (wrong-number-of-arguments "#<module function at 0x440bd10dc>" 3)

This is like the expected value on MS-Windows, but without the "from". 
Does the missing "from" indicate a bug in the Cygwin build?

Ken



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Emacs-diffs] emacs-25 33ec2ff: Add one more mod-test test
  2015-11-29  2:12   ` [Emacs-diffs] emacs-25 33ec2ff: Add one more mod-test test Ken Brown
@ 2015-11-29  3:42     ` Eli Zaretskii
  2015-11-29 15:21       ` Ken Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2015-11-29  3:42 UTC (permalink / raw)
  To: Ken Brown; +Cc: emacs-devel

> From: Ken Brown <kbrown@cornell.edu>
> Date: Sat, 28 Nov 2015 21:12:03 -0500
> 
> On 11/24/2015 2:14 PM, Eli Zaretskii wrote:
> > +  (let ((descr (should-error (mod-test-sum 1 2 3))))
> > +    (should (eq (car descr) 'wrong-number-of-arguments))
> > +    (should (stringp (nth 1 descr)))
> > +    (should (eq 0
> > +                (string-match
> > +                 (if (eq system-type 'windows-nt)
> > +                     "#<module function at \\(0x\\)?[0-9a-fA-F]+ from .*>"
> > +                   "#<module function Fmod_test_sum from .*>")
> > +                 (nth 1 descr))))
> 
> This fails on Cygwin because
> 
>    (should-error (mod-test-sum 1 2 3))
> 
> evaluates to
> 
>    (wrong-number-of-arguments "#<module function at 0x440bd10dc>" 3)
> 
> This is like the expected value on MS-Windows, but without the "from". 
> Does the missing "from" indicate a bug in the Cygwin build?

It indicates that your dladdr implementation doesn't work (probably
returns zero).

Please ask on the Cygwin list, and if dladdr is indeed missing, the
test should be updated to accommodate for this return value on Cygwin.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Emacs-diffs] emacs-25 33ec2ff: Add one more mod-test test
  2015-11-29  3:42     ` Eli Zaretskii
@ 2015-11-29 15:21       ` Ken Brown
  2015-11-29 16:15         ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Ken Brown @ 2015-11-29 15:21 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

On 11/28/2015 10:42 PM, Eli Zaretskii wrote:
>> From: Ken Brown <kbrown@cornell.edu>
>> Date: Sat, 28 Nov 2015 21:12:03 -0500
>>
>> On 11/24/2015 2:14 PM, Eli Zaretskii wrote:
>>> +  (let ((descr (should-error (mod-test-sum 1 2 3))))
>>> +    (should (eq (car descr) 'wrong-number-of-arguments))
>>> +    (should (stringp (nth 1 descr)))
>>> +    (should (eq 0
>>> +                (string-match
>>> +                 (if (eq system-type 'windows-nt)
>>> +                     "#<module function at \\(0x\\)?[0-9a-fA-F]+ from .*>"
>>> +                   "#<module function Fmod_test_sum from .*>")
>>> +                 (nth 1 descr))))
>>
>> This fails on Cygwin because
>>
>>     (should-error (mod-test-sum 1 2 3))
>>
>> evaluates to
>>
>>     (wrong-number-of-arguments "#<module function at 0x440bd10dc>" 3)
>>
>> This is like the expected value on MS-Windows, but without the "from".
>> Does the missing "from" indicate a bug in the Cygwin build?
>
> It indicates that your dladdr implementation doesn't work (probably
> returns zero).
>
> Please ask on the Cygwin list, and if dladdr is indeed missing, the
> test should be updated to accommodate for this return value on Cygwin.

Thanks.  In fact, dladdr isn't implemented on Cygwin, so dynlib_addr 
always returns false.  I'll update the test.  Should the update be 
Cygwin-specific?  According to http://linux.die.net/man/3/dladdr, dladdr 
is a glibc extension to POSIX, so there could conceivably be other 
systems with the same issue.

Ken



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Emacs-diffs] emacs-25 33ec2ff: Add one more mod-test test
  2015-11-29 15:21       ` Ken Brown
@ 2015-11-29 16:15         ` Eli Zaretskii
  2015-11-29 16:29           ` Ken Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2015-11-29 16:15 UTC (permalink / raw)
  To: Ken Brown; +Cc: emacs-devel

> Cc: emacs-devel@gnu.org
> From: Ken Brown <kbrown@cornell.edu>
> Date: Sun, 29 Nov 2015 10:21:39 -0500
> 
> >> Does the missing "from" indicate a bug in the Cygwin build?
> >
> > It indicates that your dladdr implementation doesn't work (probably
> > returns zero).
> >
> > Please ask on the Cygwin list, and if dladdr is indeed missing, the
> > test should be updated to accommodate for this return value on Cygwin.
> 
> Thanks.  In fact, dladdr isn't implemented on Cygwin, so dynlib_addr 
> always returns false.  I'll update the test.

Thanks.

> Should the update be Cygwin-specific?  According to
> http://linux.die.net/man/3/dladdr, dladdr is a glibc extension to
> POSIX, so there could conceivably be other systems with the same
> issue.

Could be, but I don't know which systems might have this problem.  If
you or someone else have access to *BSD or Solaris, please try that
there.  I wouldn't recommend blindly do that everywhere except
GNU/Linux and Windows, because then we could miss some systems where
the functionality is available, but something needs to be done to have
it.  So I think it's best to fail (pun intended) on the safe side.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Emacs-diffs] emacs-25 33ec2ff: Add one more mod-test test
  2015-11-29 16:15         ` Eli Zaretskii
@ 2015-11-29 16:29           ` Ken Brown
  0 siblings, 0 replies; 5+ messages in thread
From: Ken Brown @ 2015-11-29 16:29 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

On 11/29/2015 11:15 AM, Eli Zaretskii wrote:
>> Cc: emacs-devel@gnu.org
>> From: Ken Brown <kbrown@cornell.edu>
>> Date: Sun, 29 Nov 2015 10:21:39 -0500
>> Thanks.  In fact, dladdr isn't implemented on Cygwin, so dynlib_addr
>> always returns false.  I'll update the test.
>
> Thanks.
>
>> Should the update be Cygwin-specific?  According to
>> http://linux.die.net/man/3/dladdr, dladdr is a glibc extension to
>> POSIX, so there could conceivably be other systems with the same
>> issue.
>
> Could be, but I don't know which systems might have this problem.  If
> you or someone else have access to *BSD or Solaris, please try that
> there.  I wouldn't recommend blindly do that everywhere except
> GNU/Linux and Windows, because then we could miss some systems where
> the functionality is available, but something needs to be done to have
> it.  So I think it's best to fail (pun intended) on the safe side.

OK, I've done this.  I don't have access to *BSD or Solaris, so someone 
else will have to make sure that the test passes on those systems.

Ken




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-11-29 16:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20151124191433.3972.80810@vcs.savannah.gnu.org>
     [not found] ` <E1a1J2w-00013J-0o@vcs.savannah.gnu.org>
2015-11-29  2:12   ` [Emacs-diffs] emacs-25 33ec2ff: Add one more mod-test test Ken Brown
2015-11-29  3:42     ` Eli Zaretskii
2015-11-29 15:21       ` Ken Brown
2015-11-29 16:15         ` Eli Zaretskii
2015-11-29 16:29           ` Ken Brown

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.