Unit test test_file_transmission fails on gcc 13
Summary
56/108 Test: test_file_transmission.test_file_writer_reader
Command: "/home/joscha/caosdb/src/caosdb-cpplib/build/bin/test_file_transmission" "--gtest_filter=test_file_transmission.test_file_writer_reader" "--gtest_also_run_disabled_tests"
Directory: /home/joscha/caosdb/src/caosdb-cpplib/build/test
"test_file_transmission.test_file_writer_reader" start time: May 01 21:22 CEST
Output:
----------------------------------------------------------
Running main() from /home/joscha/.conan/data/gtest/1.11.0/_/_/build/80d1dea2fb9e2a941e8a9fc2fb71e069fd58b47f/src/googletest/src/gtest_main.cc
Note: Google Test filter = test_file_transmission.test_file_writer_reader
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from test_file_transmission
[ RUN ] test_file_transmission.test_file_writer_reader
/home/joscha/caosdb/src/caosdb-cpplib/test/test_file_transmission.cpp:49: Failure
Expected equality of these values:
fs::file_size(test_file_name)
Which is: 0
1024 * (i + 1)
Which is: 1024
/home/joscha/caosdb/src/caosdb-cpplib/test/test_file_transmission.cpp:49: Failure
Expected equality of these values:
fs::file_size(test_file_name)
Which is: 0
1024 * (i + 1)
Which is: 2048
/home/joscha/caosdb/src/caosdb-cpplib/test/test_file_transmission.cpp:49: Failure
Expected equality of these values:
fs::file_size(test_file_name)
Which is: 0
1024 * (i + 1)
Which is: 3072
/home/joscha/caosdb/src/caosdb-cpplib/test/test_file_transmission.cpp:49: Failure
Expected equality of these values:
fs::file_size(test_file_name)
Which is: 0
1024 * (i + 1)
Which is: 4096
/home/joscha/caosdb/src/caosdb-cpplib/test/test_file_transmission.cpp:49: Failure
Expected equality of these values:
fs::file_size(test_file_name)
Which is: 0
1024 * (i + 1)
Which is: 5120
/home/joscha/caosdb/src/caosdb-cpplib/test/test_file_transmission.cpp:49: Failure
Expected equality of these values:
fs::file_size(test_file_name)
Which is: 0
1024 * (i + 1)
Which is: 6144
/home/joscha/caosdb/src/caosdb-cpplib/test/test_file_transmission.cpp:49: Failure
Expected equality of these values:
fs::file_size(test_file_name)
Which is: 0
1024 * (i + 1)
Which is: 7168
[ FAILED ] test_file_transmission.test_file_writer_reader (0 ms)
[----------] 1 test from test_file_transmission (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 ] test_file_transmission.test_file_writer_reader
1 FAILED TEST
<end of output>
Test time = 0.01 sec
----------------------------------------------------------
Test Failed.
"test_file_transmission.test_file_writer_reader" end time: May 01 21:22 CEST
"test_file_transmission.test_file_writer_reader" time elapsed: 00:00:00
Expected Behavior
Unit test should not fail
Actual Behavior
See above
Steps to Reproduce the Problem
Please describe, step by step, how others can reproduce the problem. Please try these steps for yourself on a clean system.
- Compile unittests and run using
ctest
Specifications
- Version: 0.2.2
- Platform: Fedora 39
- gcc 13 (13.2.1 20240316)
- cmake version 3.27.7