KDB Test: Disable plugin test on ASAN Fedora build
See also:
@@ -79,7 +79,19 @@ if (CMAKE_SYSTEM_NAME MATCHES FreeBSD)
add_definitions (-DASAN_NO_LEAK_SANITIZER_SUPPORT)
endif (CMAKE_SYSTEM_NAME MATCHES FreeBSD)
+find_file (FEDORA fedora-release PATHS /etc)
+if (FEDORA AND ENABLE_ASAN)
+ # The plugin test fails most of the time on Fedora if we enable the address sanitizer
+ #
+ # See also:
+ #
+ # - https://build.libelektra.org/blue/organizations/jenkins/libelektra/detail/master/294/pipeline/646 -
+ # - https://issues.libelektra.org/3572
+ message (STATUS "Exclude KDB plugin test because it fails when ASAN is enabled")
+else (FEDORA AND ENABLE_ASAN)
add_kdb_test (allplugins)
+endif (FEDORA AND ENABLE_ASAN)
+
add_kdb_test (conflict REQUIRED_PLUGINS error)
add_kdb_test (error REQUIRED_PLUGINS error list spec)
add_kdb_test (nested REQUIRED_PLUGINS error)
