Skip to content

Commit

Permalink
make ithreads tests skip if Devel::Cover loaded to avoid false negatives
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Nov 20, 2024
1 parent 7a8302c commit 45ade3b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Basic/t/ppt-10_physical_piddles.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ BEGIN {
print("1..0 # Skip: Perl not compiled with 'useithreads'\n");
exit(0);
}
if (defined $Devel::Cover::VERSION) {
print("1..0 # Skip: Devel::Cover no like ithreads\n");
exit(0);
}
}

use threads;
Expand Down
4 changes: 4 additions & 0 deletions Basic/t/ppt-11_memory_mapped.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ BEGIN {
print("1..0 # Skip: Perl not compiled with 'useithreads'\n");
exit(0);
}
if (defined $Devel::Cover::VERSION) {
print("1..0 # Skip: Devel::Cover no like ithreads\n");
exit(0);
}
}

use threads;
Expand Down
4 changes: 4 additions & 0 deletions Basic/t/ppt-20_simd.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ BEGIN {
print("1..0 # Skip: Perl not compiled with 'useithreads'\n");
exit(0);
}
if (defined $Devel::Cover::VERSION) {
print("1..0 # Skip: Devel::Cover no like ithreads\n");
exit(0);
}
}

use Test::More;
Expand Down
4 changes: 4 additions & 0 deletions Basic/t/ppt-30_sharing_from_threads.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ BEGIN {
print("1..0 # Skip: Perl not compiled with 'useithreads'\n");
exit(0);
}
if (defined $Devel::Cover::VERSION) {
print("1..0 # Skip: Devel::Cover no like ithreads\n");
exit(0);
}
}

# Tests if the threads can create data and share amongst themselves
Expand Down

0 comments on commit 45ade3b

Please sign in to comment.