[v15,04/11] app/test: skip interrupt tests on Windows

Message ID 1643173844-27341-5-git-send-email-jizh@linux.microsoft.com (mailing list archive)
State Accepted, archived
Delegated to: Thomas Monjalon
Headers
Series app/test: enable subset of tests on Windows |

Checks

Context Check Description
ci/checkpatch warning coding style issues

Commit Message

Jie Zhou Jan. 26, 2022, 5:10 a.m. UTC
  Even though test_interrupts.c can compile on Windows, skip interrupt
tests for now since majority of eal_interrupt on Windows are stubs.
Will remove the skip after interrupt being fully enabled on Windows.

Signed-off-by: Jie Zhou <jizh@linux.microsoft.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
---
 app/test/test_interrupts.c | 3 +++
 1 file changed, 3 insertions(+)
  

Patch

diff --git a/app/test/test_interrupts.c b/app/test/test_interrupts.c
index 2a05399f96..e47a786b36 100644
--- a/app/test/test_interrupts.c
+++ b/app/test/test_interrupts.c
@@ -429,6 +429,9 @@  test_interrupt(void)
 	int ret = -1;
 	struct rte_intr_handle *test_intr_handle;
 
+	if (RTE_EXEC_ENV_IS_WINDOWS)
+	    return TEST_SKIPPED;
+
 	if (test_interrupt_init() < 0) {
 		printf("fail to initialize for testing interrupt\n");
 		goto out;