Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 29, 2015, 11:35:49 AM (9 years ago)
Author:
landauf
Message:

using the c++11 chrono library to add milliseconds to the timestamp in the logfile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/test/util/output/LogWriterTest.cc

    r10846 r10989  
    137137        std::string line = getLineWhichContains(path, "myothertestoutput");
    138138        EXPECT_FALSE(line.empty());
     139        ASSERT_TRUE(line.length() > 12);
     140
    139141        EXPECT_TRUE(isdigit(line[0]));
    140142        EXPECT_TRUE(isdigit(line[1]));
     
    145147        EXPECT_TRUE(isdigit(line[6]));
    146148        EXPECT_TRUE(isdigit(line[7]));
    147         EXPECT_EQ(' ', line[8]);
     149        EXPECT_EQ(':', line[8]);
     150        EXPECT_TRUE(isdigit(line[9]));
     151        EXPECT_TRUE(isdigit(line[10]));
     152        EXPECT_TRUE(isdigit(line[11]));
     153        EXPECT_EQ(' ', line[12]);
    148154    }
    149155
Note: See TracChangeset for help on using the changeset viewer.