cc.t 689 B

12345678910111213141516171819202122232425262728
  1. #! /usr/bin/env perl
  2. # better use testcc.sh for debugging
  3. BEGIN {
  4. if ($ENV{PERL_CORE}){
  5. chdir('t') if -d 't';
  6. @INC = ('.', '../lib');
  7. } else {
  8. unshift @INC, 't';
  9. #push @INC, "blib/arch", "blib/lib";
  10. }
  11. require 'test.pl'; # for run_perl()
  12. }
  13. use strict;
  14. my $DEBUGGING = ($Config{ccflags} =~ m/-DDEBUGGING/);
  15. my $ITHREADS = ($Config{useithreads});
  16. prepare_c_tests();
  17. my @todo = todo_tests_default("cc");
  18. # skip core dumps and endless loops, like custom sort or runtime labels
  19. my @skip = (14,21,30,
  20. 46, # unsupported
  21. 103, # hangs with non-DEBUGGING
  22. ((!$DEBUGGING and $] > 5.010) ? (105) : ()),
  23. );
  24. run_c_tests("CC", \@todo, \@skip);