]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
unit-tests: Don't link files from libimcv into the test executable
authorTobias Brunner <tobias@strongswan.org>
Wed, 14 Sep 2022 14:03:57 +0000 (16:03 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 15 Sep 2022 10:16:12 +0000 (12:16 +0200)
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

index 7be5da144586921a740af4fc3fb76a14b07dde13..e4c1d48baf1227ac5f229ff8b85698c9605466ad 100644 (file)
@@ -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 \