Skip to content
Snippets Groups Projects
Commit ddb1d5ff authored by Wouter van Oortmerssen's avatar Wouter van Oortmerssen
Browse files

Added a #define for running tests without file access.

Change-Id: Ib2b7aa8a5641cf73fa0d6f2000db7fdd1aabab66
Tested: on Linux.
parent 7ba29dbe
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,7 @@ using namespace MyGame::Example;
#include <android/log.h>
#define TEST_OUTPUT_LINE(...) \
__android_log_print(ANDROID_LOG_INFO, "FlatBuffers", __VA_ARGS__)
#define FLATBUFFERS_NO_FILE_TESTS
#else
#define TEST_OUTPUT_LINE(...) \
{ printf(__VA_ARGS__); printf("\n"); }
......@@ -663,7 +664,7 @@ int main(int /*argc*/, const char * /*argv*/[]) {
MutateFlatBuffersTest(flatbuf.get(), rawbuf.length());
#ifndef __ANDROID__ // requires file access
#ifndef FLATBUFFERS_NO_FILE_TESTS
ParseAndGenerateTextTest();
ParseProtoTest();
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment