Skip to content

Instantly share code, notes, and snippets.

@japhb
Last active January 16, 2022 22:08
Show Gist options
  • Save japhb/efb7da856b0694f1b440b02b57f10864 to your computer and use it in GitHub Desktop.
Save japhb/efb7da856b0694f1b440b02b57f10864 to your computer and use it in GitHub Desktop.
Cairo testing failure on Rakudo HEAD
$ raku -I. --ll-exception t/text.t
1..10
ok 1 -
ok 2 - The object is-a 'Cairo::cairo_font_extents_t'
ok 3 - font extents ascent
ok 4 - The object is-a 'Cairo::cairo_text_extents_t'
ok 5 - text extents width
ok 6 - text extents height
not ok 7 - .Blob
# Failed test '.Blob'
# at t/text.t line 30
# This container does not reference a native unsigned integer
ok 8 - data has length
not ok 9 - create image from data
# Failed test 'create image from data'
# at t/text.t line 32
# Cannot resolve caller create(Cairo::Image:U: Blob:U, Int:D); none of these signatures match:
# (Cairo::Image: Int(Any) $format, Cool $width, Cool $height, *%_)
# (Cairo::Image: Int(Any) $format, Cool $width, Cool $height, $data, Cool $stride? is copy, *%_)
# (Cairo::Image: Blob[uint8] $data, Int(Cool) $buf-len = Code.new, *%_)
Cannot look up attributes in a Cairo::Image type object. Did you forget a '.new'?
at .../.zef/tmp/cairo-p6.git/e8e6044f3c7a78c81d9ea5ad10b2f167f4ddef37/lib/Cairo.pm6 (Cairo):1097 (.../.zef/tmp/cairo-p6.git/e8e6044f3c7a78c81d9ea5ad10b2f167f4ddef37/.precomp/16128DFA4C61B5AC11DC3EEC33FE1A2AF3FE550B/ED/ED6FA5797F1D6175F24193B60ACED0C90BCA39A2:surface)
from .../.zef/tmp/cairo-p6.git/e8e6044f3c7a78c81d9ea5ad10b2f167f4ddef37/lib/Cairo.pm6 (Cairo):1290 (.../.zef/tmp/cairo-p6.git/e8e6044f3c7a78c81d9ea5ad10b2f167f4ddef37/.precomp/16128DFA4C61B5AC11DC3EEC33FE1A2AF3FE550B/ED/ED6FA5797F1D6175F24193B60ACED0C90BCA39A2:width)
from t/text.t:33 (<ephemeral file>:)
from t/text.t:7 (<ephemeral file>:<unit>)
from t/text.t:1 (<ephemeral file>:<unit-outer>)
from gen/moar/stage2/NQPHLL.nqp:1949 (.../raku/rakudo-moar-2021.12-128-g550c1c9e5/install/share/nqp/lib/NQPHLL.moarvm:eval)
from gen/moar/stage2/NQPHLL.nqp:2154 (.../raku/rakudo-moar-2021.12-128-g550c1c9e5/install/share/nqp/lib/NQPHLL.moarvm:evalfiles)
from gen/moar/stage2/NQPHLL.nqp:2114 (.../raku/rakudo-moar-2021.12-128-g550c1c9e5/install/share/nqp/lib/NQPHLL.moarvm:command_eval)
from gen/moar/Compiler.nqp:111 (.../raku/rakudo-moar-2021.12-128-g550c1c9e5/install/share/perl6/lib/Perl6/Compiler.moarvm:command_eval)
from gen/moar/stage2/NQPHLL.nqp:2039 (.../raku/rakudo-moar-2021.12-128-g550c1c9e5/install/share/nqp/lib/NQPHLL.moarvm:command_line)
from gen/moar/rakudo.nqp:140 (.../raku/rakudo-moar-2021.12-128-g550c1c9e5/install/share/perl6/runtime/perl6.moarvm:MAIN)
from gen/moar/rakudo.nqp:1 (.../raku/rakudo-moar-2021.12-128-g550c1c9e5/install/share/perl6/runtime/perl6.moarvm:<mainline>)
from <unknown>:1 (.../raku/rakudo-moar-2021.12-128-g550c1c9e5/install/share/perl6/runtime/perl6.moarvm:<main>)
from <unknown>:1 (.../raku/rakudo-moar-2021.12-128-g550c1c9e5/install/share/perl6/runtime/perl6.moarvm:<entry>)
$ raku -I. --ll-exception t/text.t
1..10
ok 1 -
ok 2 - The object is-a 'Cairo::cairo_font_extents_t'
ok 3 - font extents ascent
ok 4 - The object is-a 'Cairo::cairo_text_extents_t'
ok 5 - text extents width
ok 6 - text extents height
Unhandled exception: unreachable unbox 1
at .../.zef/tmp/cairo-p6.git/e8e6044f3c7a78c81d9ea5ad10b2f167f4ddef37/lib/Cairo.pm6 (Cairo):145 (.../.zef/tmp/cairo-p6.git/e8e6044f3c7a78c81d9ea5ad10b2f167f4ddef37/.precomp/586244FE175F2BD55227109B6E7116B2481BD0CB/ED/ED6FA5797F1D6175F24193B60ACED0C90BCA39A2:write)
from .../.zef/tmp/cairo-p6.git/e8e6044f3c7a78c81d9ea5ad10b2f167f4ddef37/lib/Cairo.pm6 (Cairo):1110 (.../.zef/tmp/cairo-p6.git/e8e6044f3c7a78c81d9ea5ad10b2f167f4ddef37/.precomp/586244FE175F2BD55227109B6E7116B2481BD0CB/ED/ED6FA5797F1D6175F24193B60ACED0C90BCA39A2:Blob)
from t/text.t:30 (<ephemeral file>:)
from core#sources/2D4A7CA10695CD2B374573413D261A660E282E2A (Test):565 (.../raku/rakudo-moar-2021.12-117-gfb909efce/install/share/perl6/core/precomp/586244FE175F2BD55227109B6E7116B2481BD0CB/2D/2D4A7CA10695CD2B374573413D261A660E282E2A:)
from core#sources/2D4A7CA10695CD2B374573413D261A660E282E2A (Test):564 (.../raku/rakudo-moar-2021.12-117-gfb909efce/install/share/perl6/core/precomp/586244FE175F2BD55227109B6E7116B2481BD0CB/2D/2D4A7CA10695CD2B374573413D261A660E282E2A:lives-ok)
from t/text.t:30 (<ephemeral file>:)
from t/text.t:7 (<ephemeral file>:<unit>)
from t/text.t:1 (<ephemeral file>:<unit-outer>)
from gen/moar/stage2/NQPHLL.nqp:1949 (.../raku/rakudo-moar-2021.12-117-gfb909efce/install/share/nqp/lib/NQPHLL.moarvm:eval)
from gen/moar/stage2/NQPHLL.nqp:2154 (.../raku/rakudo-moar-2021.12-117-gfb909efce/install/share/nqp/lib/NQPHLL.moarvm:evalfiles)
from gen/moar/stage2/NQPHLL.nqp:2084 (.../raku/rakudo-moar-2021.12-117-gfb909efce/install/share/nqp/lib/NQPHLL.moarvm:command_eval)
from gen/moar/Compiler.nqp:111 (.../raku/rakudo-moar-2021.12-117-gfb909efce/install/share/perl6/lib/Perl6/Compiler.moarvm:command_eval)
from gen/moar/stage2/NQPHLL.nqp:2039 (.../raku/rakudo-moar-2021.12-117-gfb909efce/install/share/nqp/lib/NQPHLL.moarvm:command_line)
from gen/moar/rakudo.nqp:140 (.../raku/rakudo-moar-2021.12-117-gfb909efce/install/share/perl6/runtime/perl6.moarvm:MAIN)
from gen/moar/rakudo.nqp:1 (.../raku/rakudo-moar-2021.12-117-gfb909efce/install/share/perl6/runtime/perl6.moarvm:<mainline>)
from <unknown>:1 (.../raku/rakudo-moar-2021.12-117-gfb909efce/install/share/perl6/runtime/perl6.moarvm:<main>)
from <unknown>:1 (.../raku/rakudo-moar-2021.12-117-gfb909efce/install/share/perl6/runtime/perl6.moarvm:<entry>)
===> Testing: Cairo:ver<0.2.7>
[Cairo] t/matrix.t ....... ok
[Cairo] t/pattern.t ...... ok
[Cairo] t/readme.t ....... ok
[Cairo] t/surface-pdf.t .. ok
[Cairo] t/surface-svg.t .. ok
[Cairo] t/text.t ......... Dubious, test returned 1
[Cairo] All 10 subtests passed
[Cairo] All tests successful.
[Cairo]
[Cairo] Test Summary Report
[Cairo] -------------------
[Cairo] t/text.t (Wstat: 256 Tests: 6 Failed: 0)
[Cairo] Non-zero exit status: 1
[Cairo] Parse errors: Bad plan. You planned 10 tests but ran 6.
[Cairo] Files=6, Tests=36, 8 wallclock secs
[Cairo] Result: FAILED
===> Testing [FAIL]: Cairo:ver<0.2.7>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment