Commit 719b849e authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

sim: fixed off-by-one error in test counting in Logger class

parent 368f4d1a
......@@ -103,7 +103,7 @@ class Logger;
function new ( string log_file, int id = -1 );
m_id = 1;
m_id = 0;
m_loggerId = id;
m_currentTest = null;
m_passedTests = 0;
......@@ -120,10 +120,10 @@ class Logger;
// begins a test
function automatic void startTest( string name );
m_id++;
m_currentTest = new( m_id, name );
m_tests.push_back(m_currentTest);
$display("[*] Running test %d: %s", m_id, name);
m_id++;
endfunction // startTest
// marks the current test as passed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment