Skip to content

Commit

Permalink
Add redirect.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Jun 28, 2019
1 parent 89b2565 commit b9be5ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion io/Ilvis2Reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ std::istream& operator >> (std::istream& in, Ilvis2Reader::IlvisMapping& mval)
in >> s;
s = Utils::toupper(s);

std::cerr << "Read string = " << s << "!\n";
static std::map<std::string, Ilvis2Reader::IlvisMapping> m =
{ { "INVALID", Ilvis2Reader::IlvisMapping::INVALID },
{ "LOW", Ilvis2Reader::IlvisMapping::LOW },
Expand Down Expand Up @@ -114,7 +115,7 @@ namespace

void Ilvis2Reader::addArgs(ProgramArgs& args)
{
// args.add("mapping", "Mapping for values", m_mapping, IlvisMapping::ALL);
args.add("mapping", "Mapping for values", m_mapping, IlvisMapping::ALL);
args.add("metadata", "Metadata file", m_metadataFile);
}

Expand Down
5 changes: 4 additions & 1 deletion test/unit/filters/MergeTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,11 @@ TEST(MergeTest, test6)
PipelineManager mgr;
mgr.setLog(log);
mgr.readPipeline(Support::configuredpath("filters/merge3.json"));

//Added redirect.
auto ctx = Utils::redirect(o, oss);
std::ostringstream oss;
auto ctx = Utils::redirect(std::clog, oss);

mgr.execute();

PointViewSet viewSet = mgr.views();
Expand Down

0 comments on commit b9be5ad

Please sign in to comment.