From 4769d8706e26f5ed32cc4c4fad0e2589c795f886 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 28 Oct 2013 11:24:38 +0100 Subject: [PATCH] Tesh sort removes empty lines, do it also with tesh.pl. --- buildtools/Cmake/Scripts/tesh.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/buildtools/Cmake/Scripts/tesh.pl b/buildtools/Cmake/Scripts/tesh.pl index 164ff0cb03..e103a8f5a4 100755 --- a/buildtools/Cmake/Scripts/tesh.pl +++ b/buildtools/Cmake/Scripts/tesh.pl @@ -310,9 +310,16 @@ sub parse_out { } use sort 'stable'; @got = sort mysort @got; + while (@got and $got[0] eq "") { + shift @got; + } + #also resort the other one, as perl sort is not the same as the C one used to generate teshes if(defined($cmd{'out'})){ @{$cmd{'out'}}=sort mysort @{$cmd{'out'}}; + while (@{$cmd{'out'}} and ${$cmd{'out'}}[0] eq "") { + shift @{$cmd{'out'}}; + } } } -- 2.20.1