[all-commits] [llvm/llvm-project] a61c8e: tsan: for unittests, change to use test fixtures t...

Yuanfang Chen via All-commits all-commits at lists.llvm.org
Tue May 3 10:18:24 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a61c8e1ebdff2111a394feac168426e0d962a134
      https://github.com/llvm/llvm-project/commit/a61c8e1ebdff2111a394feac168426e0d962a134
  Author: Yuanfang Chen <yuanfang.chen at sony.com>
  Date:   2022-05-03 (Tue, 03 May 2022)

  Changed paths:
    M compiler-rt/lib/tsan/tests/rtl/tsan_mop.cpp
    M compiler-rt/lib/tsan/tests/rtl/tsan_mutex.cpp
    M compiler-rt/lib/tsan/tests/rtl/tsan_string.cpp
    M compiler-rt/lib/tsan/tests/rtl/tsan_test.cpp
    M compiler-rt/lib/tsan/tests/rtl/tsan_test_util.h
    M compiler-rt/lib/tsan/tests/rtl/tsan_test_util_posix.cpp
    M compiler-rt/lib/tsan/tests/rtl/tsan_thread.cpp

  Log Message:
  -----------
  tsan: for unittests, change to use test fixtures to clear racy stacks

After cd0a5889d71, unittest would run in shard mode where many tests
share a single process. Need to clear some global state to make the test
results stable.

Reviewed By: thetruestblue, rsundahl

Differential Revision: https://reviews.llvm.org/D124591




More information about the All-commits mailing list