Skip to content

会产生core #2

@GoogleCodeExporter

Description

@GoogleCodeExporter
基于 gcc4.8, gtest1.6测试会产生core

$ ./test_attach                                                                 

[/home/google/bhook-1.0.0/test/unittest/simple]
[==========] Running 2 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 2 tests from MyLib
[ RUN      ] MyLib.case1
test_attach.cpp:26: Failure
Value of: ret
  Actual: -1
Expected: 1
[  FAILED  ] MyLib.case1 (10 ms)
[ RUN      ] MyLib.case2
[mylib.cpp][16] str:cmd2
[       OK ] MyLib.case2 (0 ms)
[----------] 2 tests from MyLib (10 ms total)

[----------] Global test environment tear-down
[==========] 2 tests from 1 test case ran. (10 ms total)
[  PASSED  ] 1 test.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] MyLib.case1

 1 FAILED TEST
[1]    16010 segmentation fault (core dumped)  ./test_attach

Original issue reported on code.google.com by anwar.r...@gmail.com on 23 Jul 2013 at 7:53

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions