[Pangloss] Config::Pipeline failing

Bruno Postle bruno at mkdoc.com
Wed Mar 3 13:50:58 GMT 2004


On Tue 02-Mar-2004 at 10:52:08PM +0000, Steve Purkis wrote:
> 
> Now *that's* a strange one...  I'm assuming you installed 
> Pipeline::Config without any problems?  All tests successful and all 
> that..

It did install ok, but I've gone back to it and look what I find
when I run the test.

First time I run it it passes everything:

> [bruno at turkey Pipeline-Config-0.05]$ perl t/yaml.t
> ok 1 - use Pipeline::Config;
> ok 2 - new
> ok 3 - debug(set)
> ok 4 - debug(get)
> ok 5 - load yaml config isa Pipeline
> ok 6 - subpipe isa Pipeline
> ok 7 - last seg isa Test::Segment
> ok 8 - foo/bar set
> ok 9 - cleanups isa Pipeline
> ok 10 - cleanups seg isa Test::Segment
> ok 11 - foo/baz set
> ok 12 - load non-existent.yaml isa Error
> not ok 13 - load non-existent.yaml isa Pipeline::Config::LoadError # TODO implement this
> #     Failed (TODO) test (t/yaml.t at line 57)
> #     load non-existent.yaml isn't a 'Pipeline::Config::LoadError' it's a 'Error::Simple'
> ok 14 - load config w/bad class name isa Pipeline::Config::LoadError
> ok 15 - error loading class
> ok 16 - load abbreviated yaml config isa Pipeline
> ok 17 - subpipe isa Pipeline
> ok 18 - last seg isa Test::Segment
> ok 19 - foo/bar set
> 1..19

Second time it fails two tests:

> [bruno at turkey Pipeline-Config-0.05]$ perl t/yaml.t
> ok 1 - use Pipeline::Config;
> ok 2 - new
> ok 3 - debug(set)
> ok 4 - debug(get)
> ok 5 - load yaml config isa Pipeline
> ok 6 - subpipe isa Pipeline
> ok 7 - last seg isa Test::Segment
> ok 8 - foo/bar set
> ok 9 - cleanups isa Pipeline
> ok 10 - cleanups seg isa Test::Segment
> ok 11 - foo/baz set
> ok 12 - load non-existent.yaml isa Error
> not ok 13 - load non-existent.yaml isa Pipeline::Config::LoadError # TODO implement this
> #     Failed (TODO) test (t/yaml.t at line 57)
> #     load non-existent.yaml isn't a 'Pipeline::Config::LoadError' it's a 'Error::Simple'
> ok 14 - load config w/bad class name isa Pipeline::Config::LoadError
> ok 15 - error loading class
> not ok 16 - load config-abbrev.yml: Error loading class [Segment] - couldn't find new() in: Segment
> #     Failed test (t/yaml.t at line 74)
> not ok 17 - load abbreviated yaml config isa Pipeline
> #     Failed test (t/yaml.t at line 76)
> #     load abbreviated yaml config isn't defined
> 1..17
> # Looks like you failed 2 tests of 17.

I just ran it 100 times and it failed 59 and passed 41.  This is my
desktop machine (uptime 26 days), so I'm fairly sure there are no
hardware problems.

-- 
Bruno


More information about the Pangloss mailing list