Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

op/sprintf2.t is failing because of limitations in parsing the TAP output from binaries #45

Open
toddr opened this issue Jul 14, 2017 · 0 comments

Comments

@toddr
Copy link
Member

toddr commented Jul 14, 2017

currently op/sprintf2.t is failing because of tests out of sequence:

    ok 1255 - sprintf("%0-+04d",1)
    ok 1256 - sprintf("%0- 4d",1)
    ok 1257 - sprintf("%0- -4d",1)
    ok 12# Compiling: >  /usr/local/cpanel/3rdparty/perl/524/bin/perl /usr/local/cpanel/3rdparty/perl/524/bin/perlcc  -o op/sprintf2.subtest.1356.bin op/sprintf2.subtest.1356.t 2>&1
    58 - sprintf("%0- +4d",1)
    ok 1259 - sprintf("%0-  4d",1)
    ok 1260 - sprintf("%0- 04d",1)

It looks like this is happening because STDERR and STDOUT are being mixed together.

This is likely a bug fixed near:
t/lib/TestCompile.pm

    my $harness = TAP::Harness->new( \%args );
    my $res     = $harness->runtests($bin_file);

Though the problem may be in STDERR redirection (or lack of?) in test.pl

Currently sprintf2.t is passing so it's not a huge deal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant