thin-provisioning-tools
thin-provisioning-tools copied to clipboard
IOEngineTests fail on 64k page systems (ppc*)
Several tests out of IOEngineTests fail on ppc systems, if the kernel is configured for 64kB pages.
Note: Google Test filter = IOEngineTests*
[==========] Running 9 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 9 tests from IOEngineTests
[ RUN ] IOEngineTests.empty_test
[ OK ] IOEngineTests.empty_test (35 ms)
[ RUN ] IOEngineTests.open_and_close
[ OK ] IOEngineTests.open_and_close (32 ms)
[ RUN ] IOEngineTests.you_can_read_a_read_only_handle
unknown file: Failure
C++ exception with description "Data passed to issue_io must be page aligned
" thrown in the test body.
[ FAILED ] IOEngineTests.you_can_read_a_read_only_handle (32 ms)
[ RUN ] IOEngineTests.you_cannot_write_to_a_read_only_handle
unknown file: Failure
C++ exception with description "Data passed to issue_io must be page aligned
" thrown in the test body.
[ FAILED ] IOEngineTests.you_cannot_write_to_a_read_only_handle (32 ms)
[ RUN ] IOEngineTests.you_can_write_to_a_read_write_handle
unknown file: Failure
C++ exception with description "Data passed to issue_io must be page aligned
" thrown in the test body.
[ FAILED ] IOEngineTests.you_can_write_to_a_read_write_handle (32 ms)
[ RUN ] IOEngineTests.final_block_read_succeeds
unknown file: Failure
C++ exception with description "Data passed to issue_io must be page aligned
" thrown in the test body.
[ FAILED ] IOEngineTests.final_block_read_succeeds (32 ms)
[ RUN ] IOEngineTests.out_of_bounds_read_fails
unknown file: Failure
C++ exception with description "Data passed to issue_io must be page aligned
" thrown in the test body.
[ FAILED ] IOEngineTests.out_of_bounds_read_fails (32 ms)
[ RUN ] IOEngineTests.out_of_bounds_write_succeeds
unknown file: Failure
C++ exception with description "Data passed to issue_io must be page aligned
" thrown in the test body.
[ FAILED ] IOEngineTests.out_of_bounds_write_succeeds (32 ms)
[ RUN ] IOEngineTests.succeed_with_timeout
unknown file: Failure
C++ exception with description "Data passed to issue_io must be page aligned
" thrown in the test body.
[ FAILED ] IOEngineTests.succeed_with_timeout (32 ms)
[----------] 9 tests from IOEngineTests (291 ms total)
The error shows up, because the mempool
created in unit-tests/io_engine_t.cc
gives out blocks aligned to 32kB (64 * 512
), which is smaller then the page size of 64kB.