* tests/scripts/options/dash-l: [SV 62172] Skip if not available

This commit is contained in:
Dmitry Goncharov 2022-04-23 15:53:36 -04:00 committed by Paul Smith
parent 634ef057ad
commit 9755d4c09c

View file

@ -42,9 +42,10 @@ $mkoptions .= " -j 4" if ($parallel_jobs);
# We have to wait longer than the default (5s).
&run_make_with_options($makefile, $mkoptions, &get_logfile, 0, 8);
$slurp = &read_file_into_string (&get_logfile(1));
if ($slurp !~ /cannot enforce load limit/) {
&compare_output("", &get_logfile(1));
$slurp = &read_file_into_string(&get_logfile(1));
if ($slurp =~ /cannot enforce load limit/) {
return -1;
}
&compare_output("", &get_logfile(1));
1;