aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2022-04-20 17:26:12 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2022-04-21 17:09:09 +0400
commita7bd942c900ff83b25ccef68629b34831db03a59 (patch)
tree1cb98cc95f2c09d100ee73449e0143918f48df40
parentc213ef9a66b0774771cb0cc04c9b3b019bb508db (diff)
downloadqemu-a7bd942c900ff83b25ccef68629b34831db03a59.zip
qemu-a7bd942c900ff83b25ccef68629b34831db03a59.tar.gz
qemu-a7bd942c900ff83b25ccef68629b34831db03a59.tar.bz2
tests: run-time skip test-qga if TSAN is enabled
This allows to make sure the test is still built, and gives more accurate report details. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20220420132624.2439741-30-marcandre.lureau@redhat.com>
-rw-r--r--tests/unit/meson.build2
-rw-r--r--tests/unit/test-qga.c7
2 files changed, 8 insertions, 1 deletions
diff --git a/tests/unit/meson.build b/tests/unit/meson.build
index 026e39f..ab01e00 100644
--- a/tests/unit/meson.build
+++ b/tests/unit/meson.build
@@ -153,7 +153,7 @@ if have_system
endif
endif
-if have_ga and targetos == 'linux' and 'CONFIG_TSAN' not in config_host
+if have_ga and targetos == 'linux'
tests += {'test-qga': ['../qtest/libqtest.c']}
test_deps += {'test-qga': qga}
endif
diff --git a/tests/unit/test-qga.c b/tests/unit/test-qga.c
index 5cb140d..e17a288 100644
--- a/tests/unit/test-qga.c
+++ b/tests/unit/test-qga.c
@@ -969,6 +969,13 @@ int main(int argc, char **argv)
TestFixture fix;
int ret;
+#ifdef QEMU_SANITIZE_THREAD
+ {
+ g_test_skip("tsan enabled, https://github.com/google/sanitizers/issues/1116");
+ return 0;
+ }
+#endif
+
setlocale (LC_ALL, "");
g_test_init(&argc, &argv, NULL);
fixture_setup(&fix, NULL, NULL);