p4raw-id: //depot/perl@12285
$vals->{TERM} = '';
$ENV{TERMPATH} = $0;
eval { $t = Term::Cap->Tgetent($vals) };
-ok( $@, 'Tgetent() dies with bad termcap file' );
+like( $@, qr/failed termcap lookup/, 'Tgetent() dies with bad termcap file' );
SKIP: {
skip( "Can't write 'tcout' file for tests", 8 ) unless $writable;