Improve ioblock1 testcase
commit39ce76314da48fca2e11d7251d3ee5f2813008ca
authorOlly Betts <olly@survex.com>
Wed, 2 Aug 2023 22:30:02 +0000 (3 10:30 +1200)
committerOlly Betts <olly@survex.com>
Wed, 2 Aug 2023 22:30:02 +0000 (3 10:30 +1200)
treea8d8362a60d5e9954a54132078ec32e99a53aba3
parentc125bad615f405bd8f3b84394d589fb0c5575735
Improve ioblock1 testcase

We were (unintentionally) trying to test with a 4TB sparse file, but
not all platforms support that.  A file just over 4GB is enough to
test what we want, and if we trying to create one fails indicating
the file size is too large (with errno EFBIG) then we skip the rest of
the testcase.

Also catch Xapian::Error exceptions and rethrow a std::string from
get_description() as the utestsuite harness doesn't know about
Xapian::Error so confusingly reports it as "UNKNOWN EXCEPTION".
xapian-core/tests/unittest.cc