1 |
Hi - |
2 |
|
3 |
Me again. I am still having problems with return code |
4 |
from a failed make test. Here is a specific example using |
5 |
the ebuild I created for DBD-mysql. On my system I run with |
6 |
the normal gentoo perl: |
7 |
|
8 |
* dev-lang/perl |
9 |
Available versions: 5.8.6-r5 5.8.6-r6 5.8.6-r7 5.8.6-r8 5.8.7 5.8.7-r1 |
10 |
5.8.7-r2 5.8.7-r3 |
11 |
Installed: 5.8.7-r3 |
12 |
Homepage: http://www.perl.org/ |
13 |
Description: Larry Wall's Practical Extraction and Reporting |
14 |
Language |
15 |
|
16 |
and a perl compiled from the perl.org stable sources |
17 |
and installed on a user (/home/beau). |
18 |
|
19 |
I force a failure in the DBD-mysql my specifying an invalid |
20 |
user name on the perl Makefile.PL command. |
21 |
|
22 |
Using the 'normal' gentoo perl make test: |
23 |
|
24 |
[...] |
25 |
FAILED before any test output arrived |
26 |
t/mysql2.............Mysql |
27 |
connect('database=test;host=;mysql_emulated_prepare=1','mysqlx',...) failed: |
28 |
Access denied for user 'mysqlx'@'localhost' (using password: YES) at |
29 |
t/mysql2.t line 29 |
30 |
Can't call method "getserverinfo" on an undefined value at t/mysql2.t line 30. |
31 |
t/mysql2.............dubious |
32 |
Test returned status 255 (wstat 65280, 0xff00) |
33 |
Failed Test Stat Wstat Total Fail Failed List of Failed |
34 |
------------------------------------------------------------------------------- |
35 |
t/10dsnlist.t 10 2560 9 17 188.89% 1-9 |
36 |
Failed Test Stat Wstat Total Fail Failed List of Failed |
37 |
------------------------------------------------------------------------------- |
38 |
[...yada,yada...] |
39 |
------------------------------------------------------------------------------- |
40 |
t/mysql.t ?? ?? % ?? |
41 |
Failed Test Stat Wstat Total Fail Failed List of Failed |
42 |
------------------------------------------------------------------------------- |
43 |
t/mysql2.t 255 65280 ?? ?? % ?? |
44 |
1 test skipped. |
45 |
Failed 19/21 test scripts, 9.52% okay. 890/897 subtests failed, 0.78% okay. |
46 |
Files=21, Tests=897, 7 wallclock secs ( 1.77 cusr + 0.24 csys = 2.01 CPU) |
47 |
$ echo $? |
48 |
0 |
49 |
|
50 |
Using a perl compiled from the perl.org source: |
51 |
|
52 |
[...] |
53 |
FAILED before any test output arrived |
54 |
t/mysql2.............Mysql |
55 |
connect('database=test;host=;mysql_emulated_prepare=1','mysqlx',...) failed: |
56 |
Access denied for user 'mysqlx'@'localhost' (using password: YES) at |
57 |
t/mysql2.t line 29 |
58 |
Can't call method "getserverinfo" on an undefined value at t/mysql2.t line 30. |
59 |
t/mysql2.............dubious |
60 |
Test returned status 255 (wstat 65280, 0xff00) |
61 |
Failed Test Stat Wstat Total Fail Failed List of Failed |
62 |
------------------------------------------------------------------------------- |
63 |
t/10dsnlist.t 10 2560 9 17 188.89% 1-9 |
64 |
[...yada,yada...] |
65 |
t/mysql2.t 255 65280 ?? ?? % ?? |
66 |
1 test skipped. |
67 |
Failed 19/21 test scripts, 9.52% okay. 890/897 subtests failed, 0.78% okay. |
68 |
make: *** [test_dynamic] Error 255 |
69 |
$ echo $? |
70 |
2 |
71 |
|
72 |
NOTE: |
73 |
1) gentoo perl return 0 |
74 |
2) my perl returns 2 and says "make: *** [test_dynamic] Error 255" |
75 |
|
76 |
The differences in perl -V seem to be: |
77 |
|
78 |
gentoo has: |
79 |
cc='i686-pc-linux-gnu-gcc' |
80 |
|
81 |
while I have: |
82 |
cc='cc' |
83 |
-Duseshrplib defined |
84 |
|
85 |
I am totally confused! I wonder if anyone can reproduce this |
86 |
or if it is a figment of a misconfiguration of mine? |
87 |
|
88 |
-- |
89 |
Aloha => Beau; |
90 |
|
91 |
-- |
92 |
gentoo-perl@g.o mailing list |