]> arthur.barton.de Git - bup.git/commit
thashsplit: don't assume MINCORE_INCORE is defined
authorRob Browning <rlb@defaultvalue.org>
Mon, 24 Aug 2015 20:44:15 +0000 (15:44 -0500)
committerRob Browning <rlb@defaultvalue.org>
Mon, 24 Aug 2015 20:55:45 +0000 (15:55 -0500)
commitdf18bd0224fca3726099c3a60b46d4245288f011
treec0aa54faf75c7616bd48ca035a1a3cd1ccaeafa5
parentea6e06e961e1b8711a44f9085ed4cfc2ae3d2392
thashsplit: don't assume MINCORE_INCORE is defined

We had intended to guard the use of MINCORE_INCORE with tests for the
presence of the underlying function call, but we missed the hashsplit
tests.

Fix it by allowing the tests to pass in the mask value they already
depend on (i.e. 1).

Thanks to Michael March for reporting the problem, Patrick Rouleau for
confirming it, and Markus for proposing an alternate solution.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/hashsplit.py
lib/bup/t/thashsplit.py