Skip to content

Commit

Permalink
Test new.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Jun 27, 2019
1 parent ca480a1 commit cd7645a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion io/Ilvis2Reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,19 +204,24 @@ std::cerr << "+Ready!\n";
std::cerr << ".. read metadata!\n";

static const int HeaderSize = 2;
std::string line;

m_lineNum = 0;
std::cerr << "Filename = " << m_filename << "!\n";
m_stream.open(m_filename);
if (!m_stream.good())
throwError("Couldn't open file '" + m_filename + "'.");
if (!std::is_open(m_stream))
std::cerr << "Not open!\n";
else
std::cerr << "Open!\n";
m_layout = table.layout();
m_resample = false;
std::cerr << ".. reading lines -- header = " << HeaderSize << "!\n";
for (size_t i = 0; m_stream.good() && i < HeaderSize; ++i)
{
std::cerr << "About to read line " << i << "!\n";
std::string line;
std::cerr << "About to getline " << i << "!\n";
std::getline(m_stream, line);
std::cerr << "Line = " << line << "!\n";
m_lineNum++;
Expand Down
2 changes: 1 addition & 1 deletion test/unit/filters/MergeTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ TEST(MergeTest, test6)
log->setLevel((LogLevel)5);

PipelineManager mgr;
// mgr.setLog(log);
mgr.setLog(log);
mgr.readPipeline(Support::configuredpath("filters/merge3.json"));

// std::ostringstream oss;
Expand Down

0 comments on commit cd7645a

Please sign in to comment.