From: Jeremy Harris Date: Thu, 26 Oct 2017 17:43:55 +0000 (+0100) Subject: Testsuite: support platform variance in debug output X-Git-Tag: exim-4_90_RC1~2 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cc6ea8f7c7642ec76dd1615e23cf57fd3d2a1aa9;p=exim.git Testsuite: support platform variance in debug output Solaris printf %p gives hex without a leading 0x --- diff --git a/test/runtest b/test/runtest index 8f8767af4..94ecd6944 100755 --- a/test/runtest +++ b/test/runtest @@ -1116,8 +1116,8 @@ RESET_AFTER_EXTRA_LINE_READ: next if /^(ppppp )?setsockopt FASTOPEN: Protocol not available$/; # Specific pointer values reported for DB operations change from run to run - s/^(returned from EXIM_DBOPEN: 0x)[0-9a-f]+/$1AAAAAAAA/; - s/^(EXIM_DBCLOSE.0x)[0-9a-f]+/$1AAAAAAAA/; + s/^(returned from EXIM_DBOPEN: )(0x)?[0-9a-f]+/${1}0xAAAAAAAA/; + s/^(EXIM_DBCLOSE.)(0x)?[0-9a-f]+/${1}0xAAAAAAAA/; # When Exim is checking the size of directories for maildir, it uses # the check_dir_size() function to scan directories. Of course, the order