numam-dpdk/app/test
Bruce Richardson 6f78a6651f app/test: check for mbuf allocation failure
If mbuf allocation failed for whatever reason, we would get a NULL
pointer exception in test_table_acl.c:test_pipeline_single_filter test
case.
We fix this by causing an early break out of the application loop. If we
quit the test immediately we would leak any existing allocated mbufs,
but by breaking instead, we allow the test to continue and clean up the
mbufs already in the pipeline, while still having a test failure as the
mbuf counts should not match.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
2014-12-17 01:04:06 +01:00
..
autotest_data.py app/test: vm power management 2014-11-26 17:27:04 +01:00
autotest_runner.py app: no more bare metal environment 2014-11-27 13:09:55 +01:00
autotest_test_funcs.py remove trailing whitespaces 2014-06-11 00:29:34 +02:00
autotest.py app: no more bare metal environment 2014-11-27 13:09:55 +01:00
commands.c app/test: measure cycles per packet in Rx/Tx 2014-11-13 00:52:29 +01:00
Makefile app: no more bare metal environment 2014-11-27 13:09:55 +01:00
packet_burst_generator.c bond: free mbufs on Tx burst failure 2014-11-24 21:43:50 +01:00
packet_burst_generator.h bond: free mbufs on Tx burst failure 2014-11-24 21:43:50 +01:00
process.h app: no more bare metal environment 2014-11-27 13:09:55 +01:00
test_acl.c acl: fix build and runtime for default target 2014-09-03 03:26:50 +02:00
test_acl.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
test_alarm.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_atomic.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_byteorder.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_cmdline_cirbuf.c eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
test_cmdline_etheraddr.c cmdline: fix overflow on bsd 2014-12-05 16:54:53 +01:00
test_cmdline_ipaddr.c cmdline: fix overflow on bsd 2014-12-05 16:54:53 +01:00
test_cmdline_lib.c remove trailing whitespaces 2014-06-11 00:29:34 +02:00
test_cmdline_num.c cmdline: fix overflow on bsd 2014-12-05 16:54:53 +01:00
test_cmdline_portlist.c cmdline: fix overflow on bsd 2014-12-05 16:54:53 +01:00
test_cmdline_string.c cmdline: fix overflow on bsd 2014-12-05 16:54:53 +01:00
test_cmdline.c app/test: only build what has been selected in config 2014-08-26 17:52:34 +02:00
test_cmdline.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
test_common.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_cpuflags.c eal/ppc: cpu flag checks for IBM Power 2014-11-26 21:50:10 +01:00
test_cycles.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_debug.c app: no more bare metal environment 2014-11-27 13:09:55 +01:00
test_devargs.c app/test: fix misplaced braces in devargs check 2014-11-24 16:28:43 +01:00
test_distributor_perf.c add prefix to cache line macros 2014-11-27 16:21:11 +01:00
test_distributor.c mbuf: add usr alias for hash 2014-11-13 12:26:10 +01:00
test_eal_flags.c app/test: fix memory needs 2014-12-11 01:42:03 +01:00
test_eal_fs.c eal: factorize common headers 2014-11-25 13:16:24 +01:00
test_errno.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_func_reentrancy.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_hash_perf.c app/test: fix crash for fbk hashes with a lot of entries 2014-10-20 23:50:35 +02:00
test_hash.c app/test: only build what has been selected in config 2014-08-26 17:52:34 +02:00
test_interrupts.c app: no more bare metal environment 2014-11-27 13:09:55 +01:00
test_ivshmem.c add prefix to cache line macros 2014-11-27 16:21:11 +01:00
test_kni.c kni: memzone pool for alloc and release 2014-10-21 17:24:53 +02:00
test_kvargs.c app/test: fix crash after null check 2014-12-17 01:04:06 +01:00
test_link_bonding.c bond: fix mac assignment to slaves 2014-12-11 01:42:02 +01:00
test_logs.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_lpm6_routes.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
test_lpm6.c app/test: only build what has been selected in config 2014-08-26 17:52:34 +02:00
test_lpm_routes.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
test_lpm.c app/test: only build what has been selected in config 2014-08-26 17:52:34 +02:00
test_malloc.c add prefix to cache line macros 2014-11-27 16:21:11 +01:00
test_mbuf.c add prefix to cache line macros 2014-11-27 16:21:11 +01:00
test_memcpy_perf.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_memcpy.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_memory.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_mempool_perf.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_mempool.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_memzone.c add prefix to cache line macros 2014-11-27 16:21:11 +01:00
test_meter.c app/test: only build what has been selected in config 2014-08-26 17:52:34 +02:00
test_mp_secondary.c app/test: remove file prefix option for bsd 2014-11-24 13:17:49 +01:00
test_pci.c app/test: fix multi-process when device is bound to uio 2014-12-17 01:04:06 +01:00
test_per_lcore.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_pmd_perf.c add prefix to cache line macros 2014-11-27 16:21:11 +01:00
test_pmd_ring.c app/test: only build what has been selected in config 2014-08-26 17:52:34 +02:00
test_power_acpi_cpufreq.c app/test: vm power management 2014-11-26 17:27:04 +01:00
test_power_kvm_vm.c app/test: vm power management 2014-11-26 17:27:04 +01:00
test_power.c app/test: vm power management 2014-11-26 17:27:04 +01:00
test_prefetch.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_red.c app/test: only build what has been selected in config 2014-08-26 17:52:34 +02:00
test_ring_perf.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_ring.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_rwlock.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_sched.c mbuf: remove the rte_pktmbuf structure 2014-09-17 11:27:51 +02:00
test_spinlock.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_string_fns.c eal: remove rte_snprintf 2014-09-29 15:04:55 +02:00
test_table_acl.c app/test: check for mbuf allocation failure 2014-12-17 01:04:06 +01:00
test_table_acl.h app/test: packet framework unit tests 2014-06-17 03:34:11 +02:00
test_table_combined.c app/test: only build what has been selected in config 2014-08-26 17:52:34 +02:00
test_table_combined.h app/test: packet framework unit tests 2014-06-17 03:34:11 +02:00
test_table_pipeline.c mbuf: replace data pointer by an offset 2014-09-17 18:53:40 +02:00
test_table_pipeline.h app/test: packet framework unit tests 2014-06-17 03:34:11 +02:00
test_table_ports.c app/test: only build what has been selected in config 2014-08-26 17:52:34 +02:00
test_table_ports.h app/test: packet framework unit tests 2014-06-17 03:34:11 +02:00
test_table_tables.c app/test: only build what has been selected in config 2014-08-26 17:52:34 +02:00
test_table_tables.h app/test: packet framework unit tests 2014-06-17 03:34:11 +02:00
test_table.c app/test: only build what has been selected in config 2014-08-26 17:52:34 +02:00
test_table.h add prefix to cache line macros 2014-11-27 16:21:11 +01:00
test_tailq.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test_timer_perf.c app/test: only build what has been selected in config 2014-08-26 17:52:34 +02:00
test_timer.c app/test: only build what has been selected in config 2014-08-26 17:52:34 +02:00
test_version.c app/test: convert all tests to register system 2014-08-26 17:52:33 +02:00
test.c app: no more bare metal environment 2014-11-27 13:09:55 +01:00
test.h app: no more bare metal environment 2014-11-27 13:09:55 +01:00
virtual_pmd.c bond: fix mac assignment to slaves 2014-12-11 01:42:02 +01:00
virtual_pmd.h bond: support link status polling 2014-11-24 21:44:02 +01:00