Item2432: Unit Tests failing with uninitialized variable in Register.pm
Priority: Normal
Current State: Closed
Released In: 1.1.0
Target Release: minor
Applies To: Engine
Component:
Branches:
Unit tests on trunk locally failing with:
Running FormattingTests
FormattingTests::test_noppedSquab
OopsException(attention/problem_adding web=>TemporaryFormattingUsersWeb topic=>UserRegistration params=>[ScumBag,Use of uninitialized value in split at /var/www/SVN/foswiki/core/lib/Foswiki/UI/Register.pm line 749.
]) at /var/www/SVN/foswiki/core/lib/Unit/TestCase.pm line 173
Unit::TestCase::assert_str_equals('FormattingTests=HASH(0x88339ec)', 'thanks', 'problem_adding', 'OopsException(attention/problem_adding web=>TemporaryFormatti...') called at /var/www/SVN/foswiki/core/test/unit/FoswikiFnTestCase.pm line 141
FoswikiFnTestCase::__ANON__('Foswiki::OopsException=HASH(0x8d1d770)', 'SCALAR(0x821aaac)') called at /var/www/SVN/foswiki/core/lib/CPAN/lib/Error.pm line 305
eval {...} called at /var/www/SVN/foswiki/core/lib/CPAN/lib/Error.pm line 296
Error::subs::run_clauses('HASH(0x8d2bd6c)', 'Foswiki::OopsException=HASH(0x8d1d770)', 'undef', 'ARRAY(0x821adc4)') called at /var/www/SVN/foswiki/core/lib/CPAN/lib/Error.pm line 390
Error::subs::try('CODE(0x8c65930)', 'HASH(0x8d2bd6c)') called at /var/www/SVN/foswiki/core/test/unit/FoswikiFnTestCase.pm line 152
FoswikiFnTestCase::registerUser('FormattingTests=HASH(0x88339ec)', 'scum', 'Scum', 'Bag', 'scumbag@example.com') called at /var/www/SVN/foswiki/core/test/unit/FoswikiFnTestCase.pm line 77
FoswikiFnTestCase::set_up('FormattingTests=HASH(0x88339ec)') called at /var/www/SVN/foswiki/core/test/unit/FormattingTests.pm line 20
FormattingTests::set_up('FormattingTests=HASH(0x88339ec)') called at /var/www/SVN/foswiki/core/lib/Unit/TestRunner.pm line 273
Unit::TestRunner::runOne('FormattingTests=HASH(0x88339ec)', 'FormattingTests', 'undef') called at /var/www/SVN/foswiki/core/lib/Unit/TestRunner.pm line 101
Unit::TestRunner::start('Unit::TestRunner=HASH(0x8146d98)', 'FormattingTests.pm') called
--
GeorgeClark
I think this was forgotten to be closed. I have run plenty of clean unit tests in trunk since this bug. Closing
--
KennethLavrsen - 09 Jan 2010