Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Bread-Board CPAN distribution.

Report information
The Basics
Id: 60955
Status: resolved
Priority: 0/
Queue: Bread-Board

People
Owner: stevan.little [...] gmail.com
Requestors: softdev [...] leandrohermida.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.14
Fixed in: (no value)



Subject: make test fails for t/040_circular_dependencies.t
When installing Bread-Board-0.14 on Perl 5.12.1 the following test fails: Running [/usr/bin/make test]... PERL_DL_NONLAZY=1 /home/hermida/soft/perl/5.12.1/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/000_load.t ............................. ok t/001_constructor_injection.t ............ ok t/002_setter_injection.t ................. ok t/003_block_injection.t .................. ok t/004_block_injection_w_out_class.t ...... ok t/010_container.t ........................ ok t/011_container_path.t ................... ok t/012_container_with_shared_deps.t ....... ok t/020_sugar.t ............................ ok t/021_sugar.t ............................ ok t/022_sugar.t ............................ ok t/023_sugar.t ............................ ok t/024_sugar.t ............................ ok t/025_sugar_w_absolute_path.t ............ ok t/026_sugar_remove.t ..................... ok t/027_sugar_w_include.t .................. ok t/028_sugar_w_recursive_inc.t ............ ok t/029_sugar_auto_wire_names.t ............ ok t/030_lifecycle_singleton.t .............. ok # Failed test '... our As match' # at t/040_circular_dependencies.t line 85. # An error occurred while using eq: # ------------------------------------ # Could not find a method for overloaded 'eq' operator at /home/hermida/.cpanplus/5.12.1/build/Bread-Board-0.14/blib/lib/Bread/Board/Service/Deferred.pm line 34 # Bread::Board::Service::Deferred::__ANON__('Class::A=HASH(0x23349d0)', 'Class::A=HASH(0x23349d0)', '', 'eq') called at (eval in cmp_ok) t/040_circular_dependencies.t line 85 # eval ' # #line 85 "(eval in cmp_ok) t/040_circular_dependencies.t" # $got eq $expect; # # ;' called at /home/hermida/soft/perl/5.12.1/lib/5.12.1/Test/Builder.pm line 1116 # Test::Builder::cmp_ok('Test::Builder=HASH(0x12db970)', 'Bread::Board::Service::Deferred=HASH(0x2337848)', 'eq', 'Class::A=HASH(0x23349d0)', '... our As match') called at /home/hermida/soft/perl/5.12.1/lib/5.12.1/Test/Builder.pm line 948 # Test::Builder::is_eq('Test::Builder=HASH(0x12db970)', 'Bread::Board::Service::Deferred=HASH(0x2337848)', 'Class::A=HASH(0x23349d0)', '... our As match') called at /home/hermida/soft/perl/5.12.1/lib/5.12.1/Test/More.pm line 372 # Test::More::is('Bread::Board::Service::Deferred=HASH(0x2337848)', 'Class::A=HASH(0x23349d0)', '... our As match') called at t/040_circular_dependencies.t line 85 # # ------------------------------------ # got: 'Class::A=HASH(0x23349d0)' # expected: 'Class::A=HASH(0x23349d0)' # Looks like you failed 1 test of 25. t/040_circular_dependencies.t ............ Dubious, test returned 1 (wstat 256, 0x100) Failed 1/25 subtests t/041_parameter_cache_handling.t ......... ok t/042_parameter_cache_with_singleton.t ... ok t/043_parameter_leaks.t .................. ok t/044_deferred_parameters.t .............. ok t/050_parameterized_containers.t ......... ok t/051_more_parameterized_containers.t .... ok t/052_parameterized_in_heirarchy.t ....... ok t/060_extend_w_sugar.t ................... ok t/061_extends_w_sugar_and_inheritance.t .. ok t/100_clone_w_constructor_injection.t .... ok t/101_clone_w_setter_injection.t ......... ok t/102_clone_w_block_injection.t .......... ok t/110_clone_w_singleton.t ................ ok t/200_example_code.t ..................... ok t/201_log_dispatch_example.t ............. ok t/202_form_sensible_example.t ............ skipped: This test requires Form::Sensible 0.11220 to be installed Test Summary Report ------------------- t/040_circular_dependencies.t (Wstat: 256 Tests: 25 Failed: 1) Failed test: 10 Non-zero exit status: 1 Files=36, Tests=529, 15 wallclock secs ( 0.14 usr 0.06 sys + 13.78 cusr 0.78 csys = 14.76 CPU) Result: FAIL Failed 1/36 test programs. 1/529 subtests failed. make: *** [test_dynamic] Error 255 perl -v This is perl 5, version 12, subversion 1 (v5.12.1) built for x86_64-linux-thread-multi uname -a Linux 2.6.34.6-47.fc13.x86_64 #1 SMP Fri Aug 27 08:56:01 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
Same happens for: Perl v5.10.1 (*) built for MSWin32-x86-multi-thread
For Perl 5.12.2 it succeeds perl 5, version 12, subversion 2 (v5.12.2) built for i686-linux $ uname -a Linux deployer 2.6.32-25-generic-pae #44-Ubuntu SMP Fri Sep 17 21:57:48 UTC 2010 i686 GNU/Linux (Ubuntu 10.04) Surprisingly, for perl 5, version 12, subversion 1 (v5.12.1) built for i686-linux on the same machine all tests pass. Also, for perl, v5.10.1 (*) built for i686-linux all tests passed. I must say this was with freshly build Perl's with Perlbrew. I've updated all dependent modules listed in Makefile.PL to their latest versions for perl, v5.10.1 (*) built for MSWin32-x86-multi-thread (Strawberry Perl on Windows 7 64-bit) and the same test still fails. Looks like a 64-bit issue to me.
This is a duplicate of RT#57760 (https://rt.cpan.org/Public/Bug/Display.html?id=57760). Because the behavior of Test::More's is() changed any version of Test::More higher than 0.94 fails. I've verified this myself. See http://code.activestate.com/lists/perl-qa/12390/ for more information. The next change to line 85 makes this test pass: my $aa = $b->A; is("$aa", $a, '... our As match'); With Class::A is just being a simple Moose object perhaps this issue should be forwarded to Moose?
No, I dont think this needs to be forwarded to Moose. This is a Bread::Board issue, I think I corrected the issue but didnt update the dependency version requirements. I will fix this in the next release, in the meantime it is safe to skip/force this test. Thanks, - stevan On Thu Sep 30 09:59:56 2010, CKRAS wrote: Show quoted text
> This is a duplicate of RT#57760 > (https://rt.cpan.org/Public/Bug/Display.html?id=57760). Because the > behavior of Test::More's is() changed any version of Test::More higher > than 0.94 fails. I've verified this myself. > > See http://code.activestate.com/lists/perl-qa/12390/ for more information. > > The next change to line 85 makes this test pass: > > my $aa = $b->A; > is("$aa", $a, '... our As match'); > > With Class::A is just being a simple Moose object perhaps this issue > should be forwarded to Moose?
Just tested 0.15 with Test::More 0.96 and the tests ran fine.
Resolved in 0.15