diff --git a/compiler-rt/test/tsan/libcxx_call_once.cpp b/compiler-rt/test/tsan/libcxx_call_once.cpp index 3e9e20a8e47d5ded6185a5e07136d05bea4ae239..b11e4c7af61504f1d2966ced11e7ce7d8200ecd9 100644 --- a/compiler-rt/test/tsan/libcxx_call_once.cpp +++ b/compiler-rt/test/tsan/libcxx_call_once.cpp @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan %s -o %t && %run %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan %s %link_libcxx_tsan -o %t && %run %t 2>&1 | FileCheck %s // REQUIRES: ohos_family diff --git a/compiler-rt/test/tsan/lit.cfg.py b/compiler-rt/test/tsan/lit.cfg.py index 4f0bf242800efb00c19e6188a4c6f20ace34d3b9..3d47d3313690dfb538401ae063caac93dcd1bffd 100644 --- a/compiler-rt/test/tsan/lit.cfg.py +++ b/compiler-rt/test/tsan/lit.cfg.py @@ -30,7 +30,7 @@ if config.host_os == 'Darwin': default_tsan_opts += ['ignore_interceptors_accesses=0'] if config.host_os == 'OHOS': - default_tsan_opts += ['ignore_noninstrumented_modules=0'] + default_tsan_opts += ['ignore_noninstrumented_modules=1'] # Platform-specific default TSAN_OPTIONS for lit tests. default_tsan_opts_str = ':'.join(default_tsan_opts)