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
Commits
c31e7b37
Commit
c31e7b37
authored
4 years ago
by
Le Van Truong
Browse files
Options
Downloads
Patches
Plain Diff
Fix Issue
#295
CPUDoubleClickShowTraceTest failed
parent
243ffaa5
No related branches found
No related tags found
1 merge request
!400
Fix Issue #295 CPUDoubleClickShowTraceTest failed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ttool/src/test/java/tmltranslator/CPUDoubleClickShowTraceTest.java
+10
-9
10 additions, 9 deletions
.../test/java/tmltranslator/CPUDoubleClickShowTraceTest.java
with
10 additions
and
9 deletions
ttool/src/test/java/tmltranslator/CPUDoubleClickShowTraceTest.java
+
10
−
9
View file @
c31e7b37
...
...
@@ -47,7 +47,7 @@ public class CPUDoubleClickShowTraceTest extends AbstractUITest {
SIM_DIR
=
getBaseResourcesDir
()
+
CPP_DIR
;
}
@Test
(
timeout
=
6
00000
)
@Test
(
timeout
=
3
00000
)
public
void
testCPUShowTraceOnDoubleClick
()
throws
Exception
{
for
(
int
i
=
0
;
i
<
MODELS_CPU_SHOWTRACE
.
length
;
i
++)
{
String
s
=
MODELS_CPU_SHOWTRACE
[
i
];
...
...
@@ -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
(
200
0
);
Thread
.
sleep
(
5
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
...
...
@@ -163,14 +163,15 @@ public class CPUDoubleClickShowTraceTest extends AbstractUITest {
int
_ID
=
tg
.
getDIPLOID
();
TraceManager
.
addDev
(
"Component ID = "
+
_ID
);
List
<
SimulationTransaction
>
ts
=
mainGUI
.
getTransactions
(
_ID
);
Thread
.
sleep
(
1000
);
if
(
ts
!=
null
)
{
TraceManager
.
addDev
(
"Trans size = "
+
ts
.
size
());
assertTrue
(
ts
.
size
()
>
0
);
}
else
{
TraceManager
.
addDev
(
"Transaction size is null with device ID = "
+
_ID
);
assert
false
;
// 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"
);
ts
=
mainGUI
.
getTransactions
(
_ID
);
Thread
.
sleep
(
100
);
}
TraceManager
.
addDev
(
"Device "
+
_ID
+
" has trans size = "
+
ts
.
size
()
+
" First trans is "
+
ts
.
get
(
0
).
command
);
assertTrue
(
ts
.
size
()
>
0
);
}
}
jfis
.
killSimulator
();
...
...
This diff is collapsed.
Click to expand it.
Le Van Truong
@le.truong
mentioned in issue
#295 (closed)
·
4 years ago
mentioned in issue
#295 (closed)
mentioned in issue #295
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment