Add a CI job to run the threads test with threads sanitizer on
authorMatt Caswell <matt@openssl.org>
Wed, 27 Jan 2021 17:23:13 +0000 (17:23 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 2 Feb 2021 12:21:33 +0000 (12:21 +0000)
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13987)

.github/workflows/ci.yml

index 9e99a9b97b51f9445ae46b90309072326fa847ae..b057eb1d5ba7bd7f33ded2a9fc846fb69e145b88 100644 (file)
@@ -91,6 +91,17 @@ jobs:
     - name: make test
       run: make test HARNESS_JOBS=${HARNESS_JOBS:-4} OPENSSL_TEST_RAND_ORDER=0
 
+  threads_sanitizer:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+    - name: config
+      run: CC=clang ./config --strict-warnings -fsanitize=thread && perl configdata.pm --dump
+    - name: make
+      run: make -s -j4
+    - name: make test
+      run: make TESTS=test_threads test HARNESS_JOBS=${HARNESS_JOBS:-4}
+
   enable_non-default_options:
     runs-on: ubuntu-latest
     steps: