[PATCH v2 2/3] test: support alarm test on FreeBSD

Stephen Hemminger stephen at networkplumber.org
Fri Aug 9 17:24:28 CEST 2024


Yes the alarm API is supported on FreeBSD.

Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
 app/test/test_alarm.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/app/test/test_alarm.c b/app/test/test_alarm.c
index b4034339b8..0cdfad1374 100644
--- a/app/test/test_alarm.c
+++ b/app/test/test_alarm.c
@@ -22,11 +22,6 @@ test_alarm_callback(void *cb_arg)
 static int
 test_alarm(void)
 {
-#ifdef RTE_EXEC_ENV_FREEBSD
-	printf("The alarm API is not supported on FreeBSD\n");
-	return 0;
-#endif
-
 	/* check if it will fail to set alarm with wrong us value */
 	printf("check if it will fail to set alarm with wrong ms values\n");
 	if (rte_eal_alarm_set(0, test_alarm_callback,
-- 
2.43.0



More information about the dev mailing list