From c9c8911478e1719b778025224747ad9896707c5f Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Wed, 14 Sep 2022 16:03:57 +0200 Subject: [PATCH] unit-tests: Don't link files from libimcv into the test executable This causes odr-violation errors with libasan as some symbols will be defined twice, once in the linked libimcv and once in the test executable itself. --- src/libimcv/Makefile.am | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/libimcv/Makefile.am b/src/libimcv/Makefile.am index 7be5da144..e4c1d48ba 100644 --- a/src/libimcv/Makefile.am +++ b/src/libimcv/Makefile.am @@ -199,25 +199,9 @@ TESTS = imcv_tests check_PROGRAMS = $(TESTS) imcv_tests_SOURCES = \ - ita/ita_attr_command.c \ - pa_tnc/pa_tnc_attr_manager.c \ - seg/seg_env.c seg/seg_contract.c \ - seg/seg_contract_manager.c \ - swid_gen/swid_gen.c \ - swima/swima_data_model.c \ - swima/swima_event.c \ - swima/swima_events.c \ - swima/swima_record.c \ - swima/swima_inventory.c \ - swima/swima_collector.c \ suites/test_imcv_seg.c \ suites/test_imcv_swima.c \ - ietf/ietf_attr_pa_tnc_error.c \ - ietf/swima/ietf_swima_attr_req.c \ - ietf/swima/ietf_swima_attr_sw_inv.c \ - ietf/swima/ietf_swima_attr_sw_ev.c \ - tcg/seg/tcg_seg_attr_seg_env.c \ - imcv.c imcv_tests.h imcv_tests.c + imcv_tests.h imcv_tests.c imcv_tests_CFLAGS = \ -I$(top_srcdir)/src/libimcv \