Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Platform-independent core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
14
Issues
14
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Platform-independent core collection
Commits
719b849e
Commit
719b849e
authored
Dec 19, 2022
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sim: fixed off-by-one error in test counting in Logger class
parent
368f4d1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
logger.svh
sim/logger.svh
+2
-2
No files found.
sim/logger.svh
View file @
719b849e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment