svn commit: r309525 - head/tests/sys/kern
Conrad E. Meyer
cem at FreeBSD.org
Sun Dec 4 03:50:58 UTC 2016
Author: cem
Date: Sun Dec 4 03:50:57 2016
New Revision: 309525
URL: https://svnweb.freebsd.org/changeset/base/309525
Log:
coredump_phnum_test: Make expected pheader count more flexible
Note: this test still requires binutils readelf (from ports) to pass, until a
few issues are resolved in elftoolchain.
PR: 215019
Reported by: ngie@
Sponsored by: Dell EMC Isilon
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 Sun Dec 4 03:10:25 2016 (r309524)
+++ head/tests/sys/kern/coredump_phnum_test.sh Sun Dec 4 03:50:57 2016 (r309525)
@@ -39,7 +39,7 @@ coredump_phnum_head()
}
coredump_phnum_body()
{
- atf_expect_fail "the value parsed doesn't always match the value obtained on the running system; bug # 215019"
+ atf_expect_fail "elftoolchain (base) readelf doesn't handle extended program header numbers; bug # 215019"
# Set up core dumping
cat > coredump_phnum_restore_state.sh <<-EOF
@@ -65,17 +65,17 @@ EOF
# the result of running the helper program and dumping core. The only
# important bit is that they're larger than 65535 (UINT16_MAX).
readelf -h coredump_phnum_helper.core | \
- atf_check -o "match:65535 \(66169\)" \
+ atf_check -o "match:65535 \(66[0-9]{3}\)" \
grep "Number of program headers:"
readelf -l coredump_phnum_helper.core | \
- atf_check -o "match:There are 66169 program headers" \
+ atf_check -o "match:There are 66[0-9]{3} program headers" \
grep -1 "program headers"
readelf -S coredump_phnum_helper.core | \
- atf_check -o "match: 0000000000000001 .* 66169 " \
+ atf_check -o "match: 0000000000000001 .* 66[0-9]{3} " \
grep -A1 "^ \[ 0\] "
procstat -v coredump_phnum_helper.core | \
- atf_check -o "match:66545" wc -l
+ atf_check -o "match:66[0-9]{3}" wc -l
}
coredump_phnum_cleanup()
{
More information about the svn-src-all
mailing list