Skip to content

Commit 650baf2

Browse files
committed
[msan] Fix strxfrm test
Revert D83719 and explicitly set locate to "C".
1 parent 02c7490 commit 650baf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/test/msan/strxfrm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
#include <string.h>
88

99
int main(void) {
10-
char q[30];
10+
char q[10];
1111
size_t n = strxfrm(q, "abcdef", sizeof(q));
1212
assert(n < sizeof(q));
1313
__msan_check_mem_is_initialized(q, n + 1);
1414

15-
locale_t loc = newlocale(LC_ALL_MASK, "", (locale_t)0);
15+
locale_t loc = newlocale(LC_ALL_MASK, "C", (locale_t)0);
1616

1717
__msan_poison(&q, sizeof(q));
1818
n = strxfrm_l(q, "qwerty", sizeof(q), loc);

0 commit comments

Comments
 (0)