Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mbe-tools
TTool
Merge requests
!401
Fix issue
#295
and prevent infinity loop
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix issue
#295
and prevent infinity loop
revert-883077ef
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Le Van Truong
requested to merge
revert-883077ef
into
master
4 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
d7074951
1 commit,
4 years ago
1 file
+
8
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ttool/src/test/java/tmltranslator/CPUDoubleClickShowTraceTest.java
+
8
−
6
Options
@@ -155,7 +155,7 @@ public class CPUDoubleClickShowTraceTest extends AbstractUITest {
jfis
.
sendTestCmd
(
"run-x-transactions 10"
);
// run 10 transactions
Thread
.
sleep
(
50
);
jfis
.
sendTestCmd
(
"lt 1000"
);
// update transaction list
Thread
.
sleep
(
5
0
);
Thread
.
sleep
(
100
0
);
for
(
TGComponent
tg
:
currTdp
.
getComponentList
())
{
System
.
out
.
println
(
"tgc = "
+
tg
.
getName
());
// get the transaction list of each CPUs on the panel, if the trans size > 0 then there will be a trace shown on double click
@@ -165,13 +165,15 @@ public class CPUDoubleClickShowTraceTest extends AbstractUITest {
List
<
SimulationTransaction
>
ts
=
mainGUI
.
getTransactions
(
_ID
);
// mainGUI.getTransactions(_ID) is synchronized function, so we need to wait until data is filled.
//the test will fail after 5 minutes if ts is still null.
while
(
ts
==
null
)
{
TraceManager
.
addDev
(
"Waiting for data"
);
int
maxNumberOfLoop
=
0
;
while
(
maxNumberOfLoop
<
15
&&
ts
==
null
)
{
// TraceManager.addDev("Waiting for data " + maxNumberOfLoop);
ts
=
mainGUI
.
getTransactions
(
_ID
);
Thread
.
sleep
(
100
);
maxNumberOfLoop
++;
Thread
.
sleep
(
2000
);
}
TraceManager
.
addDev
(
"Device "
+
_ID
+
" has trans size = "
+
ts
.
size
()
+
" First trans is "
+
ts
.
get
(
0
).
command
);
assertTrue
(
ts
.
size
()
>
0
);
if
(
ts
!=
null
)
TraceManager
.
addDev
(
"Device "
+
_ID
+
" has trans size = "
+
ts
.
size
());
assertTrue
(
ts
!=
null
&&
ts
.
size
()
>
0
);
}
}
jfis
.
killSimulator
();
Loading