Handling Errors/Headers with duplicate names [ System tests ]
FUNCTION
Test ROBODoc's response to a file with two headers that have the same name. This should be reported as an error.
SOURCE
{ my $source = <<'EOF'; /****f* Test/test * NAME * Test * FUNCTION * Test2 ***** */ /****f* Test/test * NAME * Test * FUNCTION * Test2 ***** */ EOF add_source( "test.c", $source ); my ($out, $err) = runrobo( qw(--src Src --doc Doc --multidoc --test) ); is( $out, '', 'no output' ); like( $err, qr/already\sexists/, 'error duplicate header' ); clean(); }