[rt-devel] bug in regression tests?

Jesse Vincent jesse at bestpractical.com
Thu Jun 19 14:59:45 EDT 2003


> First, in lib/RT/CurrentUser.pm:
> 
> not ok 431 - Localized TEST_STRING into Frenc
> #     Failed test (/home/jaq/src/rt.3.0.C038/lib/RT/CurrentUser.pm at line 321)
> 
> I modified the test a little, so that line 321 reads
> 
> ok ($cu->loc('Before') eq "Avant", "Localized TEST_STRING into French: " . $cu->loc('Before'));
> 
> and it reports that $cu->loc('Before') returns the string 'Before'.  I've
> just installed the fr locales on my system and the test still fails.  What
> would I need for this to pass?

That implies to me that you've not got the lexicon files somewhere that
the test harness can load them.


> 
> 
> Second, I get this error message from a test that doesn't report failure:
> 
> ok 449 - Created the scrip action
> [Thu Jun 19 10:06:57 2003] [error]: Ticket creation failed for 20 Can't
> call method "Id" on an undefined value at template line 7.
>  (/tmp/rt-test-32176/inst/lib/RT/Action/CreateTickets.pm:358)
> [Thu Jun 19 10:06:57 2003] [error]: Ticket creation failed for 20 Can't call
> method "Id" on an undefined value at template line 2.
>  (/tmp/rt-test-32176/inst/lib/RT/Action/CreateTickets.pm:358)

It's not actually a test failure. It's a buggy example that needs to get
cleaned up.

> ok 450
> ok 451
> ...
> 
> Looks like the ActionObj part of the CreateTickets test is breaking somehow,
> but no idea why.
> 
> 
> Finally, the recent encoding test is breaking:
> 
> ok 644 - The only part is text/plain
> not ok 645 - The =?KOI8-R?B?W2V4YW1wbGUuY29tICMyN10g1MXT1CDUxdPU?= is
> encoded correctly
> #     Failed test ((eval 899) at line 10)

I'd be curious if that's fixed as of RC3. There appears to be minor
oddness with the encoding of that KOI8 string being non-deterministic.
really, we should encode and then decode and check it. A patch would be
appreciated.

> ok 646 - found ticket 27
> ...
> 
> ...
> 1..649
> # Looks like you failed 2 tests of 649.
> 
> Still not 900 though... I'm using all of the tests out of bin and lib now, I'm
> pretty sure of that.

Perhaps you're failing to run the web tests in 03web.pl



> -- 
> jaq at spacepants.org                           http://spacepants.org/jaq.gpg
> _______________________________________________
> rt-devel mailing list
> rt-devel at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-devel
> 

-- 
http://www.bestpractical.com/rt  -- Trouble Ticketing. Free.



More information about the Rt-devel mailing list