diff options
author | Kenneth Heafield <kheafiel@cluster01.lti.ece.cmu.local> | 2012-05-12 14:44:02 -0400 |
---|---|---|
committer | Kenneth Heafield <kheafiel@cluster01.lti.ece.cmu.local> | 2012-05-12 14:44:02 -0400 |
commit | 5d2fba19f7989b8a2c55834a5735f5fd5b60197c (patch) | |
tree | 2a8ae5936a3021e2c0224673fce85871e7d31372 /decoder/cfg_test.cc | |
parent | bf3cf49e063781add0436453fd94b7bc966a8dbc (diff) |
Build fixes: correct config error, fix paths for tests
Diffstat (limited to 'decoder/cfg_test.cc')
-rw-r--r-- | decoder/cfg_test.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/decoder/cfg_test.cc b/decoder/cfg_test.cc index c61f9f2c..b8f4cf11 100644 --- a/decoder/cfg_test.cc +++ b/decoder/cfg_test.cc @@ -33,7 +33,8 @@ struct CFGTest : public TestWithParam<HgW> { istringstream ws(wts); EXPECT_TRUE(ws>>featw); CSHOW(featw) - HGSetup::JsonTestFile(&hg,file); + std::string path(boost::unit_test::framework::master_test_suite().argc == 2 ? boost::unit_test::framework::master_test_suite().argv[1] : "test_data"); + HGSetup::JsonTestFile(&hg,path,file); hg.Reweight(featw); cfg.Init(hg,true,true,false); } |