git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test: skip tests when missing requirements
[dpdk.git]
/
app
/
test
/
test_rcu_qsbr.c
diff --git
a/app/test/test_rcu_qsbr.c
b/app/test/test_rcu_qsbr.c
index
97af087
..
943a1e3
100644
(file)
--- a/
app/test/test_rcu_qsbr.c
+++ b/
app/test/test_rcu_qsbr.c
@@
-978,17
+978,17
@@
test_rcu_qsbr_main(void)
{
uint16_t core_id;
{
uint16_t core_id;
+ if (rte_lcore_count() < 5) {
+ printf("Not enough cores for rcu_qsbr_autotest, expecting at least 5\n");
+ return TEST_SKIPPED;
+ }
+
num_cores = 0;
RTE_LCORE_FOREACH_SLAVE(core_id) {
enabled_core_ids[num_cores] = core_id;
num_cores++;
}
num_cores = 0;
RTE_LCORE_FOREACH_SLAVE(core_id) {
enabled_core_ids[num_cores] = core_id;
num_cores++;
}
- if (num_cores < 4) {
- printf("Test failed! Need 4 or more cores\n");
- goto test_fail;
- }
-
/* Error-checking test cases */
if (test_rcu_qsbr_get_memsize() < 0)
goto test_fail;
/* Error-checking test cases */
if (test_rcu_qsbr_get_memsize() < 0)
goto test_fail;