https://bugs.kde.org/show_bug.cgi?id=412954

--- Comment #9 from syst...@mdc-berlin.de ---
Hi, I have add this code:
const auto contents = file.readContents(); 
std::cerr << "contents is:" << contents << std::endl;
REQUIRE(!contents.empty());
...

Now I get this result:
5: Test command:
/builddir/build/BUILD/heaptrack-master/my_build/tests/auto/tst_inject
5: Test timeout computed to be: 10000000
1:
===============================================================================
1: All tests passed (785 assertions in 1 test case)
1: 
2: start threads
1/5 Test #1: tst_trace ........................   Passed    0.02 sec
5: contents is:v 10250 2
5: x /builddir/build/BUILD/heaptrack-master/my_build/tests/auto/tst_inject
5: X /builddir/build/BUILD/heaptrack-master/my_build/tests/auto/tst_inject
5: I 1000 7c86ce
5: A
5: c 1
5: R 1f8
5: 
5: 
5:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5: tst_inject is a Catch v1.2.1 host application.
5: Run with -? for options
5: 
5:
-------------------------------------------------------------------------------
5: inject via dlopen
5:
-------------------------------------------------------------------------------
5: /builddir/build/BUILD/heaptrack-master/tests/auto/tst_inject.cpp:88
5:
...............................................................................
5: 
5: /builddir/build/BUILD/heaptrack-master/tests/auto/tst_inject.cpp:83: FAILED:
5:   REQUIRE( contents.find("\n+") != std::string::npos )
5: with expansion:
5:   18446744073709551615 (0xffffffffffffffff)
5:   !=
5:   18446744073709551615 (0xffffffffffffffff)
5: 
5: contents is:v 10250 2
5: x /builddir/build/BUILD/heaptrack-master/my_build/tests/auto/tst_inject
5: X /builddir/build/BUILD/heaptrack-master/my_build/tests/auto/tst_inject
5: I 1000 7c86ce
5: A
5: c 1
5: R 21e
5: 
5:
-------------------------------------------------------------------------------
5: inject via libc
5:
-------------------------------------------------------------------------------
5: /builddir/build/BUILD/heaptrack-master/tests/auto/tst_inject.cpp:106
5:
...............................................................................
5: 
5: /builddir/build/BUILD/heaptrack-master/tests/auto/tst_inject.cpp:83: FAILED:
5:   REQUIRE( contents.find("\n+") != std::string::npos )
5: with expansion:
5:   18446744073709551615 (0xffffffffffffffff)
5:   !=
5:   18446744073709551615 (0xffffffffffffffff)
5: 
5:
===============================================================================
5: test cases:  2 |  0 passed | 2 failed
5: assertions: 21 | 19 passed | 2 failed


I don't know, if this will help.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to