forked from github/verilator
Tests: Fix sigstop on parallel tests
This commit is contained in:
parent
9837b40330
commit
5078152292
@ -115,9 +115,15 @@ if ($#opt_tests<0) {
|
||||
foreach my $dir (@Test_Dirs) {
|
||||
my @stats = stat($dir); # Uniquify by inode, so different paths to same place get combined
|
||||
next if !$stats[1] || $uniq{$stats[1]}++;
|
||||
push @opt_tests, glob ("${dir}/t_*.pl");
|
||||
push @opt_tests, sort(glob ("${dir}/t_*.pl"));
|
||||
}
|
||||
}
|
||||
if ($#opt_tests>=2 && $opt_jobs>=2) {
|
||||
# Without this tests such as t_debug_sigsegv_bt_bad.pl will occasionally
|
||||
# block on input and cause a SIGSTOP, then a "fg" was needed to resume testing.
|
||||
print STDERR "== Many jobs; redirecting STDIN\n";
|
||||
open(STDIN, "+>/dev/null");
|
||||
}
|
||||
|
||||
mkdir "obj_dir";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user