unit-tests/HTTPCacheTest expects filesystem with 4KB blocks
sharkcz opened this issue · 4 comments
sharkcz commented
I've tried to run the full test-suite on a Fedora ppc64le system with XFS system and got failure in HTTPCacheTest
.....................F.
!!!FAILURES!!!
Test Results:
Run: 22 Failures: 1 Errors: 0
1) test: libdap::HTTPCacheTest::cache_gc_test (F) line: 812 HTTPCacheTest.cc
assertion failed
- Expression: pc->d_http_cache_table->d_block_size == 4096
FAIL HTTPCacheTest (exit status: 1)
When I checked the pc->d_http_cache_table->d_block_size
value I got 64K, then I looked for other differences and the only one was the filesystem, there is no problem with ppc systems with ext4, but this particular one has XFS.
sharkcz commented
https://github.com/OPENDAP/libdap4/blob/master/HTTPCache.cc#L277 is where the block size is set
jgallagher59701 commented
sharkcz commented
yes, after removing the assert from line 812 the test passes
jgallagher59701 commented
I removed that part of the test.