mavam / libbf

:dart: Bloom filters for C++11
http://mavam.github.io/libbf
BSD 3-Clause "New" or "Revised" License
356 stars 89 forks source link

make test failure #12

Open ubique opened 8 years ago

ubique commented 8 years ago
$ ./configure --prefix=/home/dbanschikov/libs/ --with-boost=/home/dbanschikov/libs/boost_1_59_0/include
Build Directory : build
Source Directory: /home/dbanschikov/git/libbf
-- Boost version: 1.59.0
-- Found the following Boost libraries:
--   unit_test_framework
-- Configuring done
-- Generating done
-- Build files have been written to: /home/dbanschikov/git/libbf/build
dbanschikov@dbanschikov:~/git/libbf$ make && make test
make[1]: Entering directory `/home/dbanschikov/git/libbf/build'
make[2]: Entering directory `/home/dbanschikov/git/libbf/build'
make[3]: Entering directory `/home/dbanschikov/git/libbf/build'
make[3]: Leaving directory `/home/dbanschikov/git/libbf/build'
make[3]: Entering directory `/home/dbanschikov/git/libbf/build'
[  9%] Building CXX object src/bf/CMakeFiles/libbf.dir/bitvector.cc.o
[ 18%] Building CXX object src/bf/CMakeFiles/libbf.dir/counter_vector.cc.o
[ 27%] Building CXX object src/bf/CMakeFiles/libbf.dir/hash.cc.o
[ 36%] Building CXX object src/bf/CMakeFiles/libbf.dir/bloom_filter/a2.cc.o
[ 45%] Building CXX object src/bf/CMakeFiles/libbf.dir/bloom_filter/basic.cc.o
[ 54%] Building CXX object src/bf/CMakeFiles/libbf.dir/bloom_filter/bitwise.cc.o
[ 63%] Building CXX object src/bf/CMakeFiles/libbf.dir/bloom_filter/counting.cc.o
[ 72%] Building CXX object src/bf/CMakeFiles/libbf.dir/bloom_filter/stable.cc.o
Linking CXX shared library libbf.so
make[3]: Leaving directory `/home/dbanschikov/git/libbf/build'
[ 72%] Built target libbf
make[3]: Entering directory `/home/dbanschikov/git/libbf/build'
make[3]: Leaving directory `/home/dbanschikov/git/libbf/build'
make[3]: Entering directory `/home/dbanschikov/git/libbf/build'
[ 81%] Building CXX object test/CMakeFiles/unit.dir/unit.cc.o
Linking CXX executable unit
make[3]: Leaving directory `/home/dbanschikov/git/libbf/build'
[ 81%] Built target unit
make[3]: Entering directory `/home/dbanschikov/git/libbf/build'
make[3]: Leaving directory `/home/dbanschikov/git/libbf/build'
make[3]: Entering directory `/home/dbanschikov/git/libbf/build'
[ 90%] Building CXX object test/bf/CMakeFiles/bf.dir/bf.cc.o
[100%] Building CXX object test/bf/CMakeFiles/bf.dir/configuration.cc.o
Linking CXX executable bf
make[3]: Leaving directory `/home/dbanschikov/git/libbf/build'
[100%] Built target bf
make[2]: Leaving directory `/home/dbanschikov/git/libbf/build'
make[1]: Leaving directory `/home/dbanschikov/git/libbf/build'
make[1]: Entering directory `/home/dbanschikov/git/libbf/build'
make[2]: Entering directory `/home/dbanschikov/git/libbf/build'
make[3]: Entering directory `/home/dbanschikov/git/libbf/build'
make[4]: Entering directory `/home/dbanschikov/git/libbf/build'
make[4]: Leaving directory `/home/dbanschikov/git/libbf/build'
[ 88%] Built target libbf
make[4]: Entering directory `/home/dbanschikov/git/libbf/build'
make[4]: Leaving directory `/home/dbanschikov/git/libbf/build'
[100%] Built target unit
make[4]: Entering directory `/home/dbanschikov/git/libbf/build'
make[4]: Leaving directory `/home/dbanschikov/git/libbf/build'
make[4]: Entering directory `/home/dbanschikov/git/libbf/build'
Running 13 test cases...
/home/dbanschikov/git/libbf/test/unit.cc(331): error: in "bloom_filter_stable": check bf.lookup("one fish") == 0 has failed [1 != 0]
/home/dbanschikov/git/libbf/test/unit.cc(332): error: in "bloom_filter_stable": check bf.lookup("two fish") == 2 has failed [3 != 2]
/home/dbanschikov/git/libbf/test/unit.cc(333): error: in "bloom_filter_stable": check bf.lookup("red fish") == 3 has failed [2 != 3]
/home/dbanschikov/git/libbf/test/unit.cc(334): error: in "bloom_filter_stable": check bf.lookup("blue fish") == 3 has failed [2 != 3]

*** 4 failures are detected in the test module "Bloom filter unit test"
make[4]: *** [test/CMakeFiles/test] Error 201
make[4]: Leaving directory `/home/dbanschikov/git/libbf/build'
make[3]: *** [test/CMakeFiles/test.dir/all] Error 2
make[3]: Leaving directory `/home/dbanschikov/git/libbf/build'
make[2]: *** [test/CMakeFiles/test.dir/rule] Error 2
make[2]: Leaving directory `/home/dbanschikov/git/libbf/build'
make[1]: *** [test] Error 2
make[1]: Leaving directory `/home/dbanschikov/git/libbf/build'
make: *** [test] Error 2
mavam commented 8 years ago

Thanks for the bug report. Unfortunately I currently lack the cycles to investigate the issue and cannot promise to fix this anytime soon. However, I'm more than happy to review and merge pull requests.

edenzik commented 8 years ago

Fixed by pending PR: [https://github.com/mavam/libbf/pull/20]