You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following is a tiny MVP of something that does not work; about as far as I could get reading the source. I stalled at line 1559, where the code refers to scopedMessage, and I could not find a definition of that anywhere ... seems some deeper magic is happening.
#include <stdio.h>
#include <iostream>
#define CATCH_CONFIG_RUNNER
#include "catch.hpp"
using namespace std;
struct some_struct
{
uint64_t timestamp;
double lat;
double lon;
float alt;
};
TEST_CASE ("sizes", "[metadata]" ) {
INFO ( "The number is " << 42 );
REQUIRE (sizeof(some_struct) == 32);
}
int
main (int argc, char ** const argv) {
int result = Catch::Session().run( argc, argv );
// cout << Catch::MessageBuilder::m_stream;
return result;
}
It's not clear how to access the buffers created by
INFO
and other logging mechanisms. Please see this stackoverflow question: http://bit.ly/1mJUoS0.The text was updated successfully, but these errors were encountered: