Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Apr 2019 19:09:45 +0000 (UTC)
From:      Enji Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r346909 - stable/12/tests/sys/kern
Message-ID:  <201904291909.x3TJ9jk6061960@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Mon Apr 29 19:09:44 2019
New Revision: 346909
URL: https://svnweb.freebsd.org/changeset/base/346909

Log:
  MFC r346542:
  
  Fix sys.kern.coredump_phnum_test.coredump_phnum on i386
  
  The zero-padding when printing out the Size field is on 32-bit architectures is
  5, not 15. Adjust the regular expression to work with both the 32-bit and
  64-bit case.

Modified:
  stable/12/tests/sys/kern/coredump_phnum_test.sh
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/tests/sys/kern/coredump_phnum_test.sh
==============================================================================
--- stable/12/tests/sys/kern/coredump_phnum_test.sh	Mon Apr 29 18:56:39 2019	(r346908)
+++ stable/12/tests/sys/kern/coredump_phnum_test.sh	Mon Apr 29 19:09:44 2019	(r346909)
@@ -65,7 +65,7 @@ EOF
 	    -x 'readelf -h coredump_phnum_helper.core | grep "Number of program headers:"'
 	atf_check -o "match:There are 66[0-9]{3} program headers" \
 	    -x 'readelf -l coredump_phnum_helper.core | grep -1 "program headers"'
-	atf_check -o "match: 0000000000000001 .* 66[0-9]{3} " \
+	atf_check -o "match: 00000(0000000000)?1 .* 66[0-9]{3} " \
 	    -x 'readelf -S coredump_phnum_helper.core | grep -A1 "^  \[ 0\] "'
 
 	atf_check -o "match:66[0-9]{3}" \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904291909.x3TJ9jk6061960>