EOF
cat > "${testname}.post-expected" <<EOF
+Trying to connect to "127.0.0.1" ...
+Connecting to 127.0.0.1:${localport}...
<= 220 Not really an ESMTP server
=> EHLO nosuchhost.example.com
<= 250-ready
EOF
test_post "${testname}.actual" "${testname}.expected" \
- > ${testname}.post 2>/dev/null
+ 2> ${testname}.post
check "${testname}.post-expected" "${testname}.post"