Subject: | t/40blobs.t cannot pass without database access - ServerError() not declared |
t/40blobs.t causes test failure when the test script cannot access a
live database.
t/40blobs.t ................. Can't call method "get_info" on an
undefined value at t/40blobs.t line 37.
t/40blobs.t ................. Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
This is because the eval {} block says to get a $dbh or call
ServerError(), but ServerError() is not defined, so this fails. Then it
proceeds to call a method on $dbh, which is still undefined.
t/40bindparam2.t does the same thing but it does not fail because it
checks $@ first and then decides to skip.