Author: Vitaly Buka
Date: 2020-07-17T13:27:34+02:00
New Revision: b35b720f5c95a0e8725a0a62337f87a452a93fe3

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

LOG: [msan] Fix strxfrm test

Revert D83719 and explicitly set locate to "C".

(cherry picked from commit 650baf22e69fff99bbfbea65edcd8e202b05fdff)

Added: 
    

Modified: 
    compiler-rt/test/msan/strxfrm.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/msan/strxfrm.cpp 
b/compiler-rt/test/msan/strxfrm.cpp
index d40b56b234cd..b4fee6f55c4c 100644
--- a/compiler-rt/test/msan/strxfrm.cpp
+++ b/compiler-rt/test/msan/strxfrm.cpp
@@ -7,12 +7,12 @@
 #include <string.h>
 
 int main(void) {
-  char q[30];
+  char q[10];
   size_t n = strxfrm(q, "abcdef", sizeof(q));
   assert(n < sizeof(q));
   __msan_check_mem_is_initialized(q, n + 1);
 
-  locale_t loc = newlocale(LC_ALL_MASK, "", (locale_t)0);
+  locale_t loc = newlocale(LC_ALL_MASK, "C", (locale_t)0);
 
   __msan_poison(&q, sizeof(q));
   n = strxfrm_l(q, "qwerty", sizeof(q), loc);


        
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to