ext/GDBM_File/t/fatal.t: handle non-fatality
authorDavid Mitchell <davem@iabyn.com>
Fri, 14 Dec 2018 16:54:42 +0000 (16:54 +0000)
committerDavid Mitchell <davem@iabyn.com>
Fri, 14 Dec 2018 16:54:42 +0000 (16:54 +0000)
commit0d9e812de5885109532ec8bf484f165213ab97cb
treef33136d7a35f53aba1fca065e8ab9d34817c4e05
parentdd0a5f5f02475a77bd12a1a4b201e77be6eaa969
ext/GDBM_File/t/fatal.t: handle non-fatality

This script is supposed to exercise the error handling callback
mechanism in gdbm, by triggering an error by surreptitiously closing
the file handle which gdbm has opened.

However, this doesn't trigger an error in newer releases of the gdbm
library, which uses mmap() rather than write() etc. In fact I can't see
any way of triggering an error: so just skip the relevant tests if we
can't trigger a failure.
ext/GDBM_File/t/fatal.t