Index: tests/sys/kern/coredump_phnum_test.sh =================================================================== --- tests/sys/kern/coredump_phnum_test.sh +++ tests/sys/kern/coredump_phnum_test.sh @@ -65,8 +65,7 @@ -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} " \ - -x 'readelf -S coredump_phnum_helper.core | grep -A1 "^ \[ 0\] "' + atf_check -x "test `elfdump -c coredump_phnum_helper.core | grep sh_info | awk '{print $2}'` -gt 65535" atf_check -o "match:66[0-9]{3}" \ -x 'procstat -v coredump_phnum_helper.core | wc -l'