]>
The Tcpdump Group git mirrors - libpcap/blob - testprogs/TESTst.pm
1 require 5.8.4; # Solaris 10
3 use warnings FATAL
=> qw(uninitialized);
5 use subs
qw(get_njobs);
7 # TESTrun helper functions (single-threaded implementation).
16 print "INFO: This Perl does not support threads.\n";
17 my $njobs = get_njobs
;
18 die "ERROR: Impossible to run $njobs tester threads!" if $njobs > 1;
22 # Here ordering of the results is obviously the same as ordering of the tests.
24 my $test = shift @tests;
25 return undef unless defined $test;
26 my $result = $test->{func
} ($test);
27 $result->{label
} = $test->{label
};