thin-provisioning-tools/unit-tests
Jörg Thalheim 6a7351da0d Fix musl build (#96)
a) Fix build if limits.h provides definition for PAGE_SIZE, as musl does w/musl per XSI[1] although it's apparently optional [2].
   This value is only provided when it's known to be a constant, to avoid the need to discover the value dynamically.
b) If not using system-provided (kernel headers, or libc headers, or something) use the POSIX approach of querying the value
   dynamically using sysconf(_SC_PAGE_SIZE) instead of hardcoded value that hopefully is correct.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html
[2] http://www.openwall.com/lists/musl/2015/09/11/8

This patch originate from:

  https://raw.githubusercontent.com/voidlinux/void-packages/a0ece13ad7ab2aae760e09e41e0459bd999a3695/srcpkgs/thin-provisioning-tools/patches/musl.patch

and was also applied in NixOS:

  https://github.com/NixOS/nixpkgs/pull/40559/

cc @dtzWill
2018-05-22 14:02:49 +01:00
..
array_block_t.cc Fix these errors: 2015-01-16 10:18:21 +00:00
array_t.cc [everything] Fix circular shared pointer references. 2014-08-26 11:14:49 +01:00
base64_t.cc [base] bse64 encoder 2013-10-10 10:18:46 +01:00
bcache_t.cc [bcache_t] Add block cache test case for issue 80 2017-07-24 15:32:26 +01:00
bitset_t.cc [bitset_t] Add test for walk_bitset 2014-09-01 14:15:32 +01:00
block_t.cc [unit-tests/block_t] Comment out failing test 2017-09-14 14:39:42 +01:00
bloom_filter_t.cc The file boost/random/uniform_int_distribution.hpp was introduced in boost 2015-01-16 10:19:25 +00:00
btree_counter_t.cc [unit-tests/btree_counter_t] Add a couple of flushes(). 2017-09-14 14:00:21 +01:00
btree_damage_visitor_t.cc [unit-test] Knock out some dead code 2017-03-13 14:17:32 +00:00
btree_t.cc [build] switch to c++11 2016-02-16 16:45:44 +00:00
buffer_t.cc wip 2014-07-29 11:34:26 +01:00
cache_superblock_t.cc [unit-test] update a cache metadtaa version test 2017-03-27 09:14:30 -04:00
cache_t.cc Give up with --std=c++11 2013-08-08 10:49:59 +01:00
copier_t.cc [unit-test] Knock out some dead code 2017-03-13 14:17:32 +00:00
damage_tracker_t.cc [damage_tracker] Reset the tracker in the end() method so we can reuse it. 2015-05-26 12:49:27 +01:00
endian_t.cc correct a couple of #includes that were pointing to the old location of endian_utils.h 2014-01-08 11:04:56 +00:00
era_superblock_t.cc [era] era_superblock_t and era_check 2014-01-09 22:40:34 +00:00
error_state_t.cc [error_state] add a sneaky little stream operator to simplify combining error_states 2015-04-08 13:58:41 +01:00
gmock_main.cc Convert buffer_t to gmock. 2013-03-22 12:04:38 +00:00
io_engine_t.cc Fix musl build (#96) 2018-05-22 14:02:49 +01:00
Makefile.in [bcache_t] Add block cache test case for issue 80 2017-07-24 15:32:26 +01:00
mem_pool_t.cc [block-cache] unit tests + debug io_engine and copier 2016-06-07 11:12:27 +01:00
metadata_checker_t.cc device_tree 2013-05-20 16:09:13 +01:00
metadata_t.cc Correct copyright year 2011-12-15 19:34:31 +01:00
rmap_visitor_t.cc [thin_rmap] rmap_visitor now sorts the rmap into ascending data_block order. 2013-05-24 14:01:03 +01:00
rolling_hash_t.cc [thin_show_dups] variable_chunk_stream 2015-09-03 13:02:29 +01:00
run_list_t.cc A big raft of changes to the unit-tests 2013-01-09 20:24:11 +00:00
run_set_t.cc [build] switch to c++11 2016-02-16 16:45:44 +00:00
space_map_t.cc [build] switch to c++11 2016-02-16 16:45:44 +00:00
span_iterator_t.cc Give up with --std=c++11 2013-08-08 10:49:59 +01:00
test_utils.cc Add some std namespaces to get tests building. 2017-07-24 15:40:17 +01:00
test_utils.h Add some std namespaces to get tests building. 2017-07-24 15:40:17 +01:00
thin_metadata_t.cc Add a space map unit test that creates a metadata sm and a disk sm 2013-04-11 14:01:54 +01:00
transaction_manager_t.cc wip 2014-07-29 11:34:26 +01:00