-
Notifications
You must be signed in to change notification settings - Fork 577
OpenBSD: 3 unit test failures in ./miniperl -Ilib t/op/sort.t
#18545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Those 3 tests use fresh_perl_is(), and only them use it in this file. Actual pwd is t/, and there's no miniperl in it. |
We use Thank you very much. |
If I run ./miniperl -Ilib t/op/warn.t, I get the same style failures. But if I run any of those two with ./perl instead of ./miniperl, they pass. I don't know enough about the test framework to say should or should not it be possible to run them with miniperl. |
Try like this:
After This matches how the tests expect to be run. As to why there's a difference between OpenBSD and Linux, on Linux we have a way to get a full path to the executable:
but on OpenBSD we don't have access to that:
There doesn't seem to be a mechanism to do this in OpenBSD, and the developers don't seem to be inclined to add one. So this isn't a bug. |
Aha! That was crucial data I was lacking! Can we/should we document that somewhere?
Confirmed. Can we/should we document that somewhere?
So it would seem. Thanks. |
There's not much documentation of the different build targets, just a bit in INSTALL and perlhack (mostly for testing that I see). I do think the targets could be better documented, both as to what they do but also why.
From perlvar:
|
Between (a) the explanation provided by @tonycoz of how to run tests after I will self-assign the ticket, wait for some more smoke-test results to come in, then close the ticket. Thank you very much. |
Smoke-test reports look good. Closing ticket. |
This ticket is an attempt to more precisely specify a problem which we've been discussing in #18536, "a1325b902d breaks build on OpenBSD".
On OpenBSD,
./miniperl -Ilib t/op/sort.t
generates 3 unit test failures which we do not see on other OSes and which do not fail when we run the file either viamake minitest
,./perl -Ilib t/op/sort.t
orcd t; ./perl harness op/sort.t; cd-
.It turns out that we can reproduce these problems in older perls. Here's output from perl-5.24.0.
Each of the 3 unit test failures is associated with an invocation of
fresh_perl_is()
out oft/test.pl
. These unit tests were first added in 2010 in the 5.13 development cycle. Not surprisingly, perl-5.14.0 is the first production release in which I've gotten these failures.Note this error output (perl-5.24):
That suggests that the problem is some interaction between the shell,
t/test.pl
and the builtminiperl
. In the case of OpenBSD,man sh
says:Since this error output has helped confuse our analysis in other tickets, I would like to be able to fix the problem soon. Assistance from anyone familiar with any of OpenBSD, Korn shell,
miniperl
andt/test.pl
will be appreciated.For reference, here is the error output in blead (v5.33.6-44-g874732f8cc):
Thank you very much.
Jim Keenan
The text was updated successfully, but these errors were encountered: