vdev: remove eal prefix
[dpdk.git] / test / test / test_eventdev.c
index 0f1deb6..88b80a9 100644 (file)
@@ -36,7 +36,7 @@
 #include <rte_malloc.h>
 #include <rte_memcpy.h>
 #include <rte_eventdev.h>
-#include <rte_cryptodev.h>
+#include <rte_dev.h>
 
 #include "test.h"
 
@@ -51,7 +51,7 @@ testsuite_setup(void)
        if (!count) {
                printf("Failed to find a valid event device,"
                        " testing with event_skeleton device\n");
-               return rte_eal_vdev_init("event_skeleton", NULL);
+               return rte_vdev_init("event_skeleton", NULL);
        }
        return TEST_SUCCESS;
 }
@@ -519,9 +519,10 @@ test_eventdev_timeout_ticks(void)
        uint64_t timeout_ticks;
 
        ret = rte_event_dequeue_timeout_ticks(TEST_DEV_ID, 100, &timeout_ticks);
-       TEST_ASSERT_SUCCESS(ret, "Fail to get timeout_ticks");
+       if (ret != -ENOTSUP)
+               TEST_ASSERT_SUCCESS(ret, "Fail to get timeout_ticks");
 
-       return TEST_SUCCESS;
+       return ret;
 }