Commit 83f614eb authored by LEFEBVREJP email's avatar LEFEBVREJP email
Browse files

Removed copy of test json file to build directory.

parent e340e6b0
...@@ -5,4 +5,3 @@ ADD_GOOGLE_TEST(tstString.cc NP 1) ...@@ -5,4 +5,3 @@ ADD_GOOGLE_TEST(tstString.cc NP 1)
ADD_GOOGLE_TEST(tstSystem.cc NP 1) ADD_GOOGLE_TEST(tstSystem.cc NP 1)
ADD_GOOGLE_TEST(tstValue.cc NP 1) ADD_GOOGLE_TEST(tstValue.cc NP 1)
configure_file(testfiles/wellformed.json testfiles/wellformed.json COPYONLY)
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "radixcore/json.hh" #include "radixcore/json.hh"
#include "radixcore/system.hh"
using namespace radix; using namespace radix;
...@@ -14,8 +15,10 @@ TEST(JSONParser, parse_from_file) ...@@ -14,8 +15,10 @@ TEST(JSONParser, parse_from_file)
{ {
{ {
JSONParser sunnyDay; JSONParser sunnyDay;
std::string filename = "testfiles/wellformed.json"; std::string filename =
bool success = sunnyDay.parse_from_file(filename); to_native_path(dirname(__FILE__) + "/testfiles/wellformed.json");
// std::cout << "Test file: " << filename << std::endl;
bool success = sunnyDay.parse_from_file(filename);
EXPECT_TRUE(success); EXPECT_TRUE(success);
// not really an error just the null terminating at eof // not really an error just the null terminating at eof
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment