[compiler-rt] 7d101e0 - [NFC][msan] Move setlocale test into sanitizer_common

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Tue May 11 19:07:32 PDT 2021


Author: Vitaly Buka
Date: 2021-05-11T19:05:07-07:00
New Revision: 7d101e0f6a38b95f512dc5d78bc9b508f4ee6da0

URL: https://github.com/llvm/llvm-project/commit/7d101e0f6a38b95f512dc5d78bc9b508f4ee6da0
DIFF: https://github.com/llvm/llvm-project/commit/7d101e0f6a38b95f512dc5d78bc9b508f4ee6da0.diff

LOG: [NFC][msan] Move setlocale test into sanitizer_common

Added: 
    compiler-rt/test/sanitizer_common/TestCases/setlocale.cpp

Modified: 
    

Removed: 
    compiler-rt/test/msan/setlocale.cpp


################################################################################
diff  --git a/compiler-rt/test/msan/setlocale.cpp b/compiler-rt/test/sanitizer_common/TestCases/setlocale.cpp
similarity index 61%
rename from compiler-rt/test/msan/setlocale.cpp
rename to compiler-rt/test/sanitizer_common/TestCases/setlocale.cpp
index 796f4454e6aa..e20e8b2f4a92 100644
--- a/compiler-rt/test/msan/setlocale.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/setlocale.cpp
@@ -1,11 +1,11 @@
-// RUN: %clangxx_msan -O0 %s -o %t && %run %t
+// RUN: %clangxx -O0 %s -o %t && %run %t
 
 #include <assert.h>
 #include <locale.h>
 #include <stdlib.h>
 
 int main(void) {
-  char *locale = setlocale (LC_ALL, "");
+  char *locale = setlocale(LC_ALL, "");
   assert(locale);
   if (locale[0])
     exit(0);


        


More information about the llvm-commits mailing list