Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Trigger Distribution
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
White Rabbit Trigger Distribution
Commits
756daa93
Commit
756daa93
authored
Aug 28, 2018
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrtd-ut-op.c: do not restart cpu (unreliable).
parent
e31b54b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
wrtd-ut-op.c
software/unittest/wrtd-ut-op.c
+6
-0
No files found.
software/unittest/wrtd-ut-op.c
View file @
756daa93
...
...
@@ -45,9 +45,11 @@ static void test_msg_loop(CuTest *tc)
wrtd
=
wrtd_open
(
2
);
CuAssertPtrNotNull
(
tc
,
wrtd
);
#if 0
CuAssertIntEquals(tc, 0, trtl_cpu_restart(wrtd_get_trtl_dev(wrtd), 0));
CuAssertIntEquals(tc, 0, trtl_cpu_restart(wrtd_get_trtl_dev(wrtd), 1));
sleep(10); /* Wait the White Rabbit link */
#endif
/* Output */
CuAssertIntEquals
(
tc
,
0
,
wrtd_out_trig_assign
(
wrtd
,
0
,
&
h
,
&
tid
,
NULL
));
...
...
@@ -101,11 +103,13 @@ static void test_msg_wr(CuTest *tc)
wrtd_1
=
wrtd_open
(
1
);
CuAssertPtrNotNull
(
tc
,
wrtd_1
);
#if 0
CuAssertIntEquals(tc, 0, trtl_cpu_restart(wrtd_get_trtl_dev(wrtd_0), 0));
CuAssertIntEquals(tc, 0, trtl_cpu_restart(wrtd_get_trtl_dev(wrtd_0), 1));
CuAssertIntEquals(tc, 0, trtl_cpu_restart(wrtd_get_trtl_dev(wrtd_1), 0));
CuAssertIntEquals(tc, 0, trtl_cpu_restart(wrtd_get_trtl_dev(wrtd_1), 1));
sleep(10); /* Wait the White Rabbit link */
#endif
CuAssertIntEquals
(
tc
,
0
,
wrtd_out_state_get
(
wrtd_1
,
0
,
&
sto
));
prev_lb
=
sto
.
received_loopback
;
...
...
@@ -184,11 +188,13 @@ static void test_msg_mix(CuTest *tc)
wrtd_1
=
wrtd_open
(
2
);
CuAssertPtrNotNull
(
tc
,
wrtd_1
);
#if 0
CuAssertIntEquals(tc, 0, trtl_cpu_restart(wrtd_get_trtl_dev(wrtd_0), 0));
CuAssertIntEquals(tc, 0, trtl_cpu_restart(wrtd_get_trtl_dev(wrtd_0), 1));
CuAssertIntEquals(tc, 0, trtl_cpu_restart(wrtd_get_trtl_dev(wrtd_1), 0));
CuAssertIntEquals(tc, 0, trtl_cpu_restart(wrtd_get_trtl_dev(wrtd_1), 1));
sleep(10); /* Wait the White Rabbit link */
#endif
CuAssertIntEquals
(
tc
,
0
,
wrtd_out_state_get
(
wrtd_1
,
0
,
&
sto1
));
prev_msg_2
=
sto1
.
received_messages
;
...
...
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