From 390ddfba7ca0aa12436f7be172098d12a8bea6fb Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Thu, 25 Oct 2018 14:02:40 +0200 Subject: [PATCH] tests/unittests: adapt for value name changes --- tests/unittests/tests-rpl_srh/tests-rpl_srh.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/unittests/tests-rpl_srh/tests-rpl_srh.c b/tests/unittests/tests-rpl_srh/tests-rpl_srh.c index 5bc75a28c1..8c7f1a2986 100644 --- a/tests/unittests/tests-rpl_srh/tests-rpl_srh.c +++ b/tests/unittests/tests-rpl_srh/tests-rpl_srh.c @@ -19,6 +19,7 @@ #include "net/ipv6/ext.h" #include "net/ipv6/hdr.h" #include "net/gnrc/rpl/srh.h" +#include "net/gnrc/ipv6/ext/rh.h" #include "unittests-constants.h" #include "tests-rpl_srh.h" @@ -61,13 +62,13 @@ static void test_rpl_srh_nexthop_no_prefix_elided(void) /* first hop */ res = gnrc_rpl_srh_process(&hdr, srh); - TEST_ASSERT_EQUAL_INT(res, EXT_RH_CODE_FORWARD); + TEST_ASSERT_EQUAL_INT(res, GNRC_IPV6_EXT_RH_FORWARDED); TEST_ASSERT_EQUAL_INT(SRH_SEG_LEFT - 1, srh->seg_left); TEST_ASSERT(ipv6_addr_equal(&hdr.dst, &expected1)); /* second hop */ res = gnrc_rpl_srh_process(&hdr, srh); - TEST_ASSERT_EQUAL_INT(res, EXT_RH_CODE_FORWARD); + TEST_ASSERT_EQUAL_INT(res, GNRC_IPV6_EXT_RH_FORWARDED); TEST_ASSERT_EQUAL_INT(SRH_SEG_LEFT - 2, srh->seg_left); TEST_ASSERT(ipv6_addr_equal(&hdr.dst, &expected2)); } @@ -94,13 +95,13 @@ static void test_rpl_srh_nexthop_prefix_elided(void) /* first hop */ res = gnrc_rpl_srh_process(&hdr, srh); - TEST_ASSERT_EQUAL_INT(res, EXT_RH_CODE_FORWARD); + TEST_ASSERT_EQUAL_INT(res, GNRC_IPV6_EXT_RH_FORWARDED); TEST_ASSERT_EQUAL_INT(SRH_SEG_LEFT - 1, srh->seg_left); TEST_ASSERT(ipv6_addr_equal(&hdr.dst, &expected1)); /* second hop */ res = gnrc_rpl_srh_process(&hdr, srh); - TEST_ASSERT_EQUAL_INT(res, EXT_RH_CODE_FORWARD); + TEST_ASSERT_EQUAL_INT(res, GNRC_IPV6_EXT_RH_FORWARDED); TEST_ASSERT_EQUAL_INT(SRH_SEG_LEFT - 2, srh->seg_left); TEST_ASSERT(ipv6_addr_equal(&hdr.dst, &expected2)); }