summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2020-02-07 11:59:32 +0100
committerFlorin Coras <florin.coras@gmail.com>2020-02-07 16:15:04 +0000
commitdc90c719bca27856101f758939dcfb0b67124775 (patch)
tree14f1f631289f58357f568ed2e55b61d72db914e1 /src/plugins
parent9fef68d778d7fa8519343d168169ecdb26fa7570 (diff)
svm: use default SVM address in fifo unit tests
Using random addresses can confuse AddressSanitizer Type: fix Change-Id: I44368093f899672ac4d511cc5a01ed87c988e63a Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/unittest/svm_fifo_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/unittest/svm_fifo_test.c b/src/plugins/unittest/svm_fifo_test.c
index 9b3ad06fc5a..fd2e05f3c3f 100644
--- a/src/plugins/unittest/svm_fifo_test.c
+++ b/src/plugins/unittest/svm_fifo_test.c
@@ -14,6 +14,7 @@
*/
#include <svm/svm_fifo.h>
#include <vlib/vlib.h>
+#include <svm/svm_common.h>
#include <svm/fifo_segment.h>
#define SFIFO_TEST_I(_cond, _comment, _args...) \
@@ -2630,7 +2631,7 @@ sfifo_test_fifo_segment (vlib_main_t * vm, unformat_input_t * input)
{
int rv, verbose = 0;
- fifo_segment_main_init (&segment_main, 3ULL << 30, 5);
+ fifo_segment_main_init (&segment_main, HIGH_SEGMENT_BASEVA, 5);
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "verbose"))