Commit 6f5fc0a1 authored by Tristan Gingold's avatar Tristan Gingold

unittest: remove unused code.

parent eb3609d6
......@@ -215,7 +215,6 @@ static void test_msg_mix(CuTest *tc)
struct wrtd_trigger_handle h_1, h_2, h_3;
struct wrtd_input_state sti1, sti2;
struct wrtd_output_state sto1, sto2;
unsigned int prev_msg_2, prev_msg_3, prev_msg_4;
const uint64_t tdelay = 200 * 1000 * 1000;
wrtd_0 = wrtd_open(1);
......@@ -234,13 +233,6 @@ static void test_msg_mix(CuTest *tc)
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;
CuAssertIntEquals(tc, 0, wrtd_out_state_get(wrtd_0, 0, &sto1));
prev_msg_3 = sto1.received_messages;
CuAssertIntEquals(tc, 0, wrtd_out_state_get(wrtd_0, 1, &sto1));
prev_msg_4 = sto1.received_messages;
/* Assign trigger input */
CuAssertIntEquals(tc, 0, wrtd_in_trigger_assign(wrtd_0, 0, &tid_1));
CuAssertIntEquals(tc, 0, wrtd_in_trigger_assign(wrtd_0, 1, &tid_2));
......
......@@ -105,7 +105,7 @@ static void test_out_trigger_clear(CuTest *tc)
{
struct wrtd_output_trigger_state trig[15];
struct wrtd_node *wrtd;
int i, ret;
int i;
wrtd = wrtd_open(1);
......@@ -116,7 +116,7 @@ static void test_out_trigger_clear(CuTest *tc)
num = wrtd_out_trig_get_all(wrtd, i, trig, 15);
for (j = 0; j < num; j++) {
ret = wrtd_out_trig_unassign(wrtd, &trig[j].handle);
wrtd_out_trig_unassign(wrtd, &trig[j].handle);
/* May have been removed as a condition of a former
trigger. */
}
......
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