Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure: FileUtilsTest.testSetFileLength #164

Open
vincele opened this issue Jan 18, 2021 · 0 comments
Open

Test failure: FileUtilsTest.testSetFileLength #164

vincele opened this issue Jan 18, 2021 · 0 comments

Comments

@vincele
Copy link

vincele commented Jan 18, 2021

The following test failure happens on GNU Guix, both with version 3.0.7 & 3.0.8. This ran in a qemu/libvirt VM:

vince@guix /tmp/guix-build-lucene++-3.0.8.drv-2/build$ ./src/test/lucene++-tester --test_dir=../source/src/test/testfiles --gtest_filter=FileUtilsTest.testSetFileLength
Note: Google Test filter = FileUtilsTest.testSetFileLength
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from FileUtilsTest
[ RUN      ] FileUtilsTest.testSetFileLength
/tmp/guix-build-lucene++-3.0.8.drv-0/source/src/test/util/FileUtilsTest.cpp:75: Failure
Value of: FileUtils::setFileLength(fileDir, 1234)
  Actual: false
Expected: true
/tmp/guix-build-lucene++-3.0.8.drv-0/source/src/test/util/FileUtilsTest.cpp:78: Failure
Expected equality of these values:
  fileLengthGrow
    Which is: 29
  1234
/tmp/guix-build-lucene++-3.0.8.drv-0/source/src/test/util/FileUtilsTest.cpp:80: Failure
Value of: FileUtils::setFileLength(fileDir, 29)
  Actual: false
Expected: true
[  FAILED  ] FileUtilsTest.testSetFileLength (0 ms)
[----------] 1 test from FileUtilsTest (0 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (0 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] FileUtilsTest.testSetFileLength

 1 FAILED TEST

I repeated that single test a few times, and they all failed.

All the other tests pass OK.

vince@guix /tmp$ uname -a
Linux guix 5.10.5-gnu #1 SMP 1 x86_64 GNU/Linux

CMake command line and output:

running 'cmake' with arguments ("../source" "-DCMAKE_BUILD_TYPE=RelWithDebInfo" "-DCMAKE_INSTALL_PREFIX=/gnu/store/d01acls7321fjn9zcsvsjki4h3wifbab-lucene++-3.0.8" "-DCMAKE_INSTALL_LIBDIR=lib" "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE" "-DCMAKE_INSTALL_RPATH=/gnu/store/d01acls7321fjn9zcsvsjki4h3wifbab-lucene++-3.0.8/lib" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-Wno-dev" "-DCMAKE_CXX_FLAGS=-DBOOST_VARIANT_USE_RELAXED_GET_BY_DEFAULT" "-DCMAKE_INSTALL_LIBDIR:PATH=lib")
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/bin/gcc
-- Check for working C compiler: /gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/bin/c++
-- Check for working CXX compiler: /gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- cotire 1.8.0 loaded.
-- Found Boost: /gnu/store/wgk6wwmcbrb2mw2aj7lzd861gsnkz1an-boost-1.72.0/lib/cmake/Boost-1.72.0/BoostConfig.cmake (found version "1.72.0") found components: date_time filesystem iostreams regex system thread 
-- Found ZLIB: /gnu/store/rykm237xkmq7rl1p0nwass01p090p88x-zlib-1.2.11/lib/libz.so (found version "1.2.11") 
-- Found Threads: TRUE  
-- C CXX target lucene++ cotired.
-- C CXX target lucene++-contrib cotired.
-- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) 
-- CXX target lucene++-tester cotired.

** Build Summary **
  Version:          3.0.8
  Prefix:           /gnu/store/d01acls7321fjn9zcsvsjki4h3wifbab-lucene++-3.0.8
  Build Type:       RelWithDebInfo
  Architecture:     x86_64
  System:           Linux
  Boost Include:    /gnu/store/wgk6wwmcbrb2mw2aj7lzd861gsnkz1an-boost-1.72.0/include
  Boost Libraries:  /gnu/store/wgk6wwmcbrb2mw2aj7lzd861gsnkz1an-boost-1.72.0/lib
  Zlib Include:     /gnu/store/rykm237xkmq7rl1p0nwass01p090p88x-zlib-1.2.11/include
  Zlib Library:     /gnu/store/rykm237xkmq7rl1p0nwass01p090p88x-zlib-1.2.11/lib/libz.so

More info available on request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant