svn commit: r346542 - head/tests/sys/kern
Enji Cooper
ngie at FreeBSD.org
Tue Sep 3 14:08:13 UTC 2019
Author: ngie
Date: Mon Apr 22 11:21:20 2019
New Revision: 346542
URL: https://svnweb.freebsd.org/changeset/base/346542
Log:
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.
MFC after: 1 week
Reviewed by: lwhsu, markj
Approved by: emaste (mentor, implicit)
Differential Revision: https://reviews.freebsd.org/D20005
Modified:
head/tests/sys/kern/coredump_phnum_test.sh
Modified: head/tests/sys/kern/coredump_phnum_test.sh
==============================================================================
--- head/tests/sys/kern/coredump_phnum_test.sh Mon Apr 22 11:17:37 2019 (r346541)
+++ head/tests/sys/kern/coredump_phnum_test.sh Mon Apr 22 11:21:20 2019 (r346542)
@@ -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}" \
More information about the svn-src-all
mailing list