tests: test_ust_constructor: Use a C-compiled shared object
authorKienan Stewart <kstewart@efficios.com>
Thu, 8 Feb 2024 14:02:48 +0000 (09:02 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 7 Mar 2024 17:11:52 +0000 (12:11 -0500)
commited1b6b66f5b5d319e86aa7522edbf7517c7ed25d
tree0f810f16e577093d0662655d52d19a7b830713e5
parentab4919b5b443ac46269a5ba9f6bd00f0cbd9f35b
tests: test_ust_constructor: Use a C-compiled shared object

Similar to the previous change, this change splits the c-style
constructors for the shared object into a separate object which can be
compiled with gcc instead of g++.

This makes it possible to test the constructors are traced even if
LTTng-UST uses the LTTNG_UST_ALLOCATE_COMPOUND_LITERAL_ON_HEAP build
configuration.

Change-Id: Icd96cb30cedc1615951a6fec3c72731776f95d81
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/regression/ust/ust-constructor/test_ust_constructor.py
tests/utils/testapp/gen-ust-events-constructor/Makefile.am
tests/utils/testapp/gen-ust-events-constructor/main.cpp
tests/utils/testapp/gen-ust-events-constructor/tp-so.h
tests/utils/testapp/gen-ust-events-constructor/tp-so_c-define.c [new file with mode: 0644]
tests/utils/testapp/gen-ust-events-constructor/tp-so_c-provider.c [new file with mode: 0644]
tests/utils/testapp/gen-ust-events-constructor/tp-so_c.h [new file with mode: 0644]
This page took 0.025797 seconds and 4 git commands to generate.