Skip to content

Commit

Permalink
test jenkins
Browse files Browse the repository at this point in the history
Signed-off-by: Thiery Ouattara <[email protected]>
  • Loading branch information
outscale-toa committed Dec 8, 2020
1 parent dedfe4b commit e6e159f
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion tests/vtep/tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -813,14 +813,34 @@ static void test_vtep_vnis(int flag)
continue;
}


if (j == ((i - 1) % NB_VNIS)) {
g_assert(tmp_mask == 0x0000ff);
} else if (j == i % NB_VNIS){
g_assert(tmp_mask == 0x00ff00);
} else if (j == ((i + 1) % NB_VNIS)) {
// printf("==== NB_VNIS-tmp_mask == % " PRIx64 "\n", tmp_mask);
printf("==== NB_VNIS-i == % " PRId32 "\n", i);
printf("==== NB_VNIS-j == % " PRId32 "\n", j);
printf("==== NB_VNIS-okht == %lx " PRIx64 "\n", tmp_mask);
g_assert(tmp_mask == 0xff0000);
} else {
g_assert(!tmp_mask);
}
/*
if (j == ((i - 1) % NB_VNIS))
g_assert(tmp_mask == 0x0000ff);
else if (j == i % NB_VNIS)
g_assert(tmp_mask == 0x00ff00);
else if (j == ((i + 1) % NB_VNIS))
g_assert(tmp_mask == 0xff0000);
printf("==== NB_VNIS-i == % " PRId32 "\n", i);
printf("==== NB_VNIS-j == % " PRId32 "\n", j);
printf("==== NB_VNIS-okht == %lx " PRIx64 "\n", tmp_mask);
g_assert(tmp_mask == 0xff0000);
else
g_assert(!tmp_mask);
*/
}

if (!(flag & PG_VTEP_NO_COPY)) {
Expand Down

0 comments on commit e6e159f

Please sign in to comment.