From a7fab3fe53f6dd59ca902aa5b4b63ad6543f1866 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Sat, 8 Jan 2022 11:49:06 +0100 Subject: [PATCH] tests/unittests/tests-saul_reg: remove saul_reg_rm test function --- .../unittests/tests-saul_reg/tests-saul_reg.c | 47 ------------------- 1 file changed, 47 deletions(-) diff --git a/tests/unittests/tests-saul_reg/tests-saul_reg.c b/tests/unittests/tests-saul_reg/tests-saul_reg.c index 8d2b91b59e..5b39e1fea8 100644 --- a/tests/unittests/tests-saul_reg/tests-saul_reg.c +++ b/tests/unittests/tests-saul_reg/tests-saul_reg.c @@ -166,52 +166,6 @@ static void test_reg_find_type_and_name(void) TEST_ASSERT_NULL(dev); } -static void test_reg_rm(void) -{ - int res; - - TEST_ASSERT_EQUAL_INT(5, count()); - TEST_ASSERT_EQUAL_STRING("S0", saul_reg->name); - TEST_ASSERT_EQUAL_STRING("S3", last()->name); - - res = saul_reg_rm(&s3b); - TEST_ASSERT_EQUAL_INT(0, res); - TEST_ASSERT_EQUAL_INT(4, count()); - TEST_ASSERT_EQUAL_STRING("S0", saul_reg->name); - TEST_ASSERT_EQUAL_STRING("S3", last()->name); - - res = saul_reg_rm(&s3a); - TEST_ASSERT_EQUAL_INT(0, res); - TEST_ASSERT_EQUAL_INT(3, count()); - TEST_ASSERT_EQUAL_STRING("S0", saul_reg->name); - TEST_ASSERT_EQUAL_STRING("S2", last()->name); - - res = saul_reg_rm(&s1); - TEST_ASSERT_EQUAL_INT(0, res); - TEST_ASSERT_EQUAL_INT(2, count()); - TEST_ASSERT_EQUAL_STRING("S0", saul_reg->name); - TEST_ASSERT_EQUAL_STRING("S2", last()->name); - - res = saul_reg_rm(&s1); - TEST_ASSERT_EQUAL_INT(-ENODEV, res); - - res = saul_reg_rm(NULL); - TEST_ASSERT_EQUAL_INT(-ENODEV, res); - - TEST_ASSERT_EQUAL_INT(2, count()); - - res = saul_reg_rm(&s0); - TEST_ASSERT_EQUAL_INT(0, res); - TEST_ASSERT_EQUAL_INT(1, count()); - TEST_ASSERT_EQUAL_STRING("S2", saul_reg->name); - TEST_ASSERT_EQUAL_STRING("S2", last()->name); - - res = saul_reg_rm(&s2); - TEST_ASSERT_EQUAL_INT(0, res); - TEST_ASSERT_EQUAL_INT(0, count()); - TEST_ASSERT_NULL(saul_reg); -} - Test *tests_saul_reg_tests(void) { EMB_UNIT_TESTFIXTURES(fixtures) { @@ -221,7 +175,6 @@ Test *tests_saul_reg_tests(void) new_TestFixture(test_reg_find_type), new_TestFixture(test_reg_find_name), new_TestFixture(test_reg_find_type_and_name), - new_TestFixture(test_reg_rm) }; EMB_UNIT_TESTCALLER(pkt_tests, NULL, NULL, fixtures);