From 57932fac695288d1583ca168bd82d2ae32220da8 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Thu, 5 Dec 2024 06:02:16 +0200 Subject: [PATCH] do not delete _Inline/ --- cpan/Games-Solitaire-Verify/benchmark/sanity-test.pl | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/cpan/Games-Solitaire-Verify/benchmark/sanity-test.pl b/cpan/Games-Solitaire-Verify/benchmark/sanity-test.pl index ccfe3e72a..e5faa2bf7 100644 --- a/cpan/Games-Solitaire-Verify/benchmark/sanity-test.pl +++ b/cpan/Games-Solitaire-Verify/benchmark/sanity-test.pl @@ -27,12 +27,17 @@ sub do_system sub _cleanup { - rmtree( ["_Inline"] ); + my ($start) = @_; + + if ($start) + { + rmtree( ["_Inline"] ); + } unlink( grep { -f $_ } glob("Results/*.res") ); return; } -_cleanup(); +_cleanup(1); do_system( { cmd => [ "gmake", "-f", "par2.mak", "-j1", "Results/1.res", ] } ); do_system( { cmd => [ "gmake", "-f", "par2.mak", "-j1", "Results/2.res", ] } ); @@ -57,5 +62,5 @@ sub _cleanup } continue { ++$i; } Carp::confess() if $i ne 401; -_cleanup(); +_cleanup(''); unlink( "build.ninja", "par2.mak" );