]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* tests/scripts/options/dash-l: [SV 62172] Skip if not available
authorDmitry Goncharov <dgoncharov@users.sf.net>
Sat, 23 Apr 2022 19:53:36 +0000 (15:53 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 24 Apr 2022 14:39:32 +0000 (10:39 -0400)
tests/scripts/options/dash-l

index 637c8bd8f697e0bfae023d4c24e716ff7ac9688a..d1e604947f44b2d1ba67b8e8c485e2b7a68156b7 100644 (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;