mavam / mavam/libbf

make test failure

Open
#12 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
368
Forks
89
PR merge metrics
No merged PRs in 30d

Description

$ ./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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with test/unit.cc lines 331-334 in the bloom_filter_stable test and reproduce the failure with the shown configure, make, and make test commands. Trace the stable bloom-filter behavior involved in these lookups; done means the test passes with the expected counts and the full test run reports no failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.