]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_hash_readwrite_lf.c
test: skip tests when missing requirements
[dpdk.git] / app / test / test_hash_readwrite_lf.c
index 56443619687377fea79637072b6fedf0a0bbd5cd..2664f5138c68d09222cd9fe6c0ee6b295743f9da 100644 (file)
@@ -1254,10 +1254,10 @@ test_hash_readwrite_lf_main(void)
        int htm;
        int use_jhash = 0;
        int ext_bkt = 0;
-       if (rte_lcore_count() == 1) {
-               printf("More than one lcore is required "
-                       "to do read write lock-free concurrency test\n");
-               return -1;
+
+       if (rte_lcore_count() < 2) {
+               printf("Not enough cores for hash_readwrite_lf_autotest, expecting at least 2\n");
+               return TEST_SKIPPED;
        }
 
        setlocale(LC_NUMERIC, "");