diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-02-17 13:43:48 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-02-17 13:43:48 -0800 |
commit | 6a2dabe3675cc5d9f03587e1bf4fb8c7a61bafea (patch) | |
tree | 2cecad02e09ef4a35d9d27f3c95840b7b12e4778 /cpp/001trace.cc | |
parent | 0c0eee435482df5e58634cf7d26e3016bba4cf12 (diff) | |
download | mu-6a2dabe3675cc5d9f03587e1bf4fb8c7a61bafea.tar.gz |
773 - start testing traces
Diffstat (limited to 'cpp/001trace.cc')
-rw-r--r-- | cpp/001trace.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/001trace.cc b/cpp/001trace.cc index 8b69cc84..24416a91 100644 --- a/cpp/001trace.cc +++ b/cpp/001trace.cc @@ -168,6 +168,7 @@ void parse_layer_and_frame(const string& orig, string* layer, string* frame) { bool check_trace_contents(string FUNCTION, string FILE, int LINE, string layer, string expected) { // empty layer == everything, multiple layers, hierarchical layers vector<string> expected_lines = split(expected, ""); +//? cout << "aa check2 " << layer << ": " << expected_lines.size() << '\n'; //? 1 size_t curr_expected_line = 0; while (curr_expected_line < expected_lines.size() && expected_lines[curr_expected_line].empty()) ++curr_expected_line; @@ -178,6 +179,8 @@ bool check_trace_contents(string FUNCTION, string FILE, int LINE, string layer, for (vector<pair<string, pair<int, string> > >::iterator p = Trace_stream->past_lines.begin(); p != Trace_stream->past_lines.end(); ++p) { if (!layer.empty() && !any_prefix_match(layers, p->first)) continue; +//? cout << "comparing " << p->second.second << '\n'; //? 1 +//? cout << " with " << expected_lines[curr_expected_line] << '\n'; //? 1 if (p->second.second != expected_lines[curr_expected_line]) continue; ++curr_expected_line; |