[v5,10/10] test: remove double registration check

Message ID 20230817043027.138473-1-okaya@kernel.org (mailing list archive)
State New
Delegated to: Thomas Monjalon
Series support reinit flow |


Context Check Description
ci/checkpatch warning coding style issues
ci/loongarch-compilation success Compilation OK
ci/loongarch-unit-testing success Unit Testing PASS
ci/github-robot: build fail github build: failed
ci/iol-sample-apps-testing success Testing PASS
ci/iol-compile-amd64-testing success Testing PASS
ci/iol-unit-amd64-testing success Testing PASS
ci/iol-compile-arm64-testing success Testing PASS
ci/iol-unit-arm64-testing success Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-broadcom-Functional success Functional Testing PASS
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/intel-Functional success Functional PASS

Commit Message

Sinan Kaya Aug. 17, 2023, 4:30 a.m. UTC
  From: Sinan Kaya <okaya@kernel.org>

Code will fetch the existing registration when called
for second time as part of the reinit changes.
Registration will still succeed.

Signed-off-by: Sinan Kaya <okaya@kernel.org>
 app/test/test_tailq.c | 5 -----
 1 file changed, 5 deletions(-)


diff --git a/app/test/test_tailq.c b/app/test/test_tailq.c
index 9520219b0a..fbb483ea86 100644
--- a/app/test/test_tailq.c
+++ b/app/test/test_tailq.c
@@ -70,11 +70,6 @@  test_tailq_create(void)
 	if (strcmp(rte_dummy_dyn2_tailq.name, rte_dummy_dyn_tailq.name))
 		do_return("Error, something is wrong in the tailq test\n");
-	/* try allocating again, and check for failure */
-	if (!rte_eal_tailq_register(&rte_dummy_dyn2_tailq))
-		do_return("Error, registering the same tailq %s did not fail\n",
-			  rte_dummy_dyn2_tailq.name);
 	return 0;