[llvm] 2b1cb6d - [test][TSan] Fix tests under NPM

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 18 11:38:28 PDT 2020


Author: Arthur Eubanks
Date: 2020-09-18T11:37:55-07:00
New Revision: 2b1cb6d54a3298204e01a2982e3d00a1f08743a2

URL: https://github.com/llvm/llvm-project/commit/2b1cb6d54a3298204e01a2982e3d00a1f08743a2
DIFF: https://github.com/llvm/llvm-project/commit/2b1cb6d54a3298204e01a2982e3d00a1f08743a2.diff

LOG: [test][TSan] Fix tests under NPM

Under NPM, the TSan passes are split into a module and function pass. A
couple tests were testing for inserted module constructors, which is
only part of the module pass.

Added: 
    

Modified: 
    llvm/test/Instrumentation/ThreadSanitizer/do-not-instrument-memory-access.ll
    llvm/test/Instrumentation/ThreadSanitizer/tsan_basic.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Instrumentation/ThreadSanitizer/do-not-instrument-memory-access.ll b/llvm/test/Instrumentation/ThreadSanitizer/do-not-instrument-memory-access.ll
index 494df83cabbb6..5086a157fcf34 100644
--- a/llvm/test/Instrumentation/ThreadSanitizer/do-not-instrument-memory-access.ll
+++ b/llvm/test/Instrumentation/ThreadSanitizer/do-not-instrument-memory-access.ll
@@ -2,7 +2,8 @@
 ; - Instruction profiler counter instrumentation has known intended races.
 ; - The gcov counters array has a known intended race.
 ;
-; RUN: opt < %s -tsan -S | FileCheck %s
+; RUN: opt < %s -tsan -S -enable-new-pm=0 | FileCheck %s
+; RUN: opt < %s -passes='function(tsan),module(tsan-module)' -S | FileCheck %s
 
 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-apple-macosx10.9"

diff  --git a/llvm/test/Instrumentation/ThreadSanitizer/tsan_basic.ll b/llvm/test/Instrumentation/ThreadSanitizer/tsan_basic.ll
index 100717af13bf0..20406c7f147cd 100644
--- a/llvm/test/Instrumentation/ThreadSanitizer/tsan_basic.ll
+++ b/llvm/test/Instrumentation/ThreadSanitizer/tsan_basic.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -tsan -S | FileCheck %s
+; RUN: opt < %s -tsan -S -enable-new-pm=0 | FileCheck %s
 ; RUN: opt < %s -passes='function(tsan),module(tsan-module)' -S | FileCheck %s
 
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"


        


More information about the llvm-commits mailing list