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

Harness fails with description for whole-file skippage #5988

Closed
p6rt opened this issue Jan 5, 2017 · 3 comments
Closed

Harness fails with description for whole-file skippage #5988

p6rt opened this issue Jan 5, 2017 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jan 5, 2017

Migrated from rt.perl.org#130518 (status was 'resolved')

Searchable as RT130518$

@p6rt
Copy link
Author

p6rt commented Jan 5, 2017

From @zoffixznet

TAP v12 spec[^1] shows the following as an example as TAP output that can be used to skip all tests with description​:

  1..0 # Skipped​: WWW​::Mechanize not installed

However, trying to run TAP​::Harness with such output crashes it with some failed internal typecheck​:

zoffix@​VirtualBox​:~/CPANPRC/Standard-Rakudo$ cat t.p6
say "1..0 # Skipped​: WWW​::Mechanize not installed"
zoffix@​VirtualBox​:~/CPANPRC/Standard-Rakudo$ ./perl6 -e 'use TAP; await TAP​::Harness.new.run("t.p6").waiter;'
Tried to get the result of a broken Promise
  in block <unit> at -e line 1

Original exception​:
  Type check failed in assignment to $!explanation; expected Str but got Any (Any)
  in method plan at /home/zoffix/CPANPRC/Standard-Rakudo/install/share/perl6/sources/4CE2F6717405FCBF7F9D888C3BDF76C1127F8CB1 (TAP) line 224
  in any !reduce at /home/zoffix/CPANPRC/Standard-Rakudo/install/share/nqp/lib/QRegex.moarvm line 1
  in regex plan at /home/zoffix/CPANPRC/Standard-Rakudo/install/share/perl6/sources/4CE2F6717405FCBF7F9D888C3BDF76C1127F8CB1 (TAP) line 172
  in regex line at /home/zoffix/CPANPRC/Standard-Rakudo/install/share/perl6/sources/4CE2F6717405FCBF7F9D888C3BDF76C1127F8CB1 (TAP) line 169
  in regex TOP at /home/zoffix/CPANPRC/Standard-Rakudo/install/share/perl6/sources/4CE2F6717405FCBF7F9D888C3BDF76C1127F8CB1 (TAP) line 166
  in any call_with_args at gen/moar/Metamodel.nqp line 3889
  in method subparse at /home/zoffix/CPANPRC/Standard-Rakudo/install/share/perl6/sources/4CE2F6717405FCBF7F9D888C3BDF76C1127F8CB1 (TAP) line 270
  in method add-data at /home/zoffix/CPANPRC/Standard-Rakudo/install/share/perl6/sources/4CE2F6717405FCBF7F9D888C3BDF76C1127F8CB1 (TAP) line 281
  in block at /home/zoffix/CPANPRC/Standard-Rakudo/install/share/perl6/sources/4CE2F6717405FCBF7F9D888C3BDF76C1127F8CB1 (TAP) line 880
  in method run at /home/zoffix/CPANPRC/Standard-Rakudo/install/share/perl6/sources/4CE2F6717405FCBF7F9D888C3BDF76C1127F8CB1 (TAP) line 852
  in block at /home/zoffix/CPANPRC/Standard-Rakudo/install/share/perl6/sources/4CE2F6717405FCBF7F9D888C3BDF76C1127F8CB1 (TAP) line 1034
  in block at /home/zoffix/CPANPRC/Standard-Rakudo/install/share/perl6/sources/4CE2F6717405FCBF7F9D888C3BDF76C1127F8CB1 (TAP) line 1029

zoffix@​VirtualBox​:~/CPANPRC/Standard-Rakudo$

[1] https://testanything.org/tap-specification.html

@p6rt
Copy link
Author

p6rt commented Jan 10, 2017

From @zoffixznet

On Thu, 05 Jan 2017 14​:33​:21 -0800, cpan@​zoffix.com wrote​:

TAP v12 spec[^1] shows the following as an example as TAP output that
can be used to skip all tests with description​:

1..0 # Skipped​: WWW​::Mechanize not installed

However, trying to run TAP​::Harness with such output crashes it with
some failed internal typecheck​:

Thank you for the report. This is now fixed.

Fix​: rakudo/rakudo@aee7af356c
Test​: rakudo/rakudo@aee7af356c

@p6rt p6rt closed this as completed Jan 10, 2017
@p6rt
Copy link
Author

p6rt commented Jan 10, 2017

@zoffixznet - Status changed from 'new' to 'resolved'

@p6rt p6rt added the tap6 label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant