issue293.t 645 B

12345678910111213141516171819202122232425
  1. #! /usr/bin/env perl
  2. # http://code.google.com/p/perl-compiler/issues/detail?id=293
  3. # Empty &Coro::State::_jit and READONLY no_modify double-init run-time errors
  4. use strict;
  5. BEGIN {
  6. unshift @INC, 't';
  7. require "test.pl";
  8. }
  9. use Test::More;
  10. use Config;
  11. eval "use Coro;";
  12. if ($@) {
  13. plan skip_all => "Coro required for testing issue #293";
  14. } else {
  15. plan tests => 1;
  16. }
  17. use B::C ();
  18. my $cmt = '#293 boot Coro::State';
  19. my $todo = $B::C::VERSION ge '1.46_04' ? "" : "TODO ";
  20. $todo = "TODO 5.10thr " if $] =~ /^5\.010001/ and $Config{useithreads};
  21. my $script = 'use Coro; print q(ok)';
  22. ctestok(1, 'C,-O3', 'ccode293i', $script, $todo.'C '.$cmt);