Last active
April 28, 2017 13:07
-
-
Save madebr/8013fe5d456192cb995bcd206558e38f to your computer and use it in GitHub Desktop.
Boost Unit Test Framework Crash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define BOOST_TEST_MODULE module | |
#include <boost/test/included/unit_test.hpp> | |
/* | |
* Compile with: | |
* | |
* g++ main.cpp -lboost_unit_test_framework -o crash | |
* | |
* Run with: | |
* | |
* ./crash | |
* | |
* Crash: | |
* $ ./crash | |
* Running 1 test case... | |
* | |
**** No errors detected | |
**** Error in `./crash': corrupted double-linked list: 0x0000000000bbfd70 *** | |
*======= Backtrace: ========= | |
*... | |
*======= Memory map: ======== | |
*... | |
*/ | |
BOOST_AUTO_TEST_CASE(who) { | |
BOOST_TEST(true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment