X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=test%2Fruntest;h=ac840379c90ea063095eafcf873394acf35622f2;hb=b402f29499e9790419ff4dc8bb3462552e98e827;hp=87ce5bfd34ccb9f9c56b7e4a0e4779c90f432f9e;hpb=7329ca93989a243c026aa7bcfd9751d0c2e58772;p=exim.git diff --git a/test/runtest b/test/runtest index 87ce5bfd3..ac840379c 100755 --- a/test/runtest +++ b/test/runtest @@ -2274,6 +2274,14 @@ elsif (/^((?i:[A-Z\d_]+=\S+\s+)+)?(\d+)?\s*(sudo(?:\s+-u\s+(\w+))?\s+)?exim(_\S+ my(@msglist) = (); while () { push (@msglist, $1) if /^\s*\d+[smhdw]\s+\S+\s+(\S+)/; } close(QLIST); + # We need the message ids sorted in ascending order. + # Message id is: --. On some systems (*BSD) the + # PIDs are randomized, so sorting just the whole PID doesn't work. + # We do the Schartz' transformation here (sort on + # ). Thanks to Kirill Miazine + @msglist = map { $_->[0] } + sort { $a->[1] cmp $b->[1] } + map { [$_, join '', (split '-', $_)[0,2]] } @msglist; # Done backwards just in case there are more than 9