Current ASAN base is using QEMU 9.2. There is a known issue about
O_LARGEFILE
- Refer : https://gitlab.com/qemu-project/qemu/-/commit/
741df485e8aec3f509a4e26c975e4cdc94239c88
So it's always failing during building ASAN with QEMU 9.2.
ASAN doesn't need to check unittest at building time.
Do disable unittest if asan is defined.
[ 97s] Test project /home/abuild/rpmbuild/BUILD/dumpsys-2.0.16/tests
[ 97s] Start 1: test_dumpsys_client_user_api
[ 97s] 1/4 Test #1: test_dumpsys_client_user_api ..... Passed 0.14 sec
[ 97s] Start 2: test_dumpsys_service
[ 98s] 2/4 Test #2: test_dumpsys_service .............***Failed 0.22 sec
[ 98s] Start 3: test_dumpsys_client_system_api
[ 98s] 3/4 Test #3: test_dumpsys_client_system_api ... Passed 0.17 sec
Change-Id: I2745033fdb06656dfffc0a9180fb06dccd5a67af
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
%define on_off() %{expand:%%{?with_%{1}:ON}%%{!?with_%{1}:OFF}}
-%if "%{?profile}" == "tv"
+%if "%{?profile}" == "tv" || "%{?asan}" == "1"
%undefine _with_tests
%else
%define _with_tests on