[libcxx-commits] [libcxx] 081dbd6 - [NFC] Try to fix test due asan failure

Diogo Sampaio via libcxx-commits libcxx-commits at lists.llvm.org
Fri May 1 09:18:50 PDT 2020


Author: Diogo Sampaio
Date: 2020-05-01T17:18:25+01:00
New Revision: 081dbd61db8a1ead5d95cf248211011d9cda4894

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

LOG: [NFC] Try to fix test due asan failure

Added: 
    

Modified: 
    libcxx/test/std/re/re.const/re.matchflag/match_prev_avail.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/re/re.const/re.matchflag/match_prev_avail.pass.cpp b/libcxx/test/std/re/re.const/re.matchflag/match_prev_avail.pass.cpp
index e42895b2c159..5decf933d965 100644
--- a/libcxx/test/std/re/re.const/re.matchflag/match_prev_avail.pass.cpp
+++ b/libcxx/test/std/re/re.const/re.matchflag/match_prev_avail.pass.cpp
@@ -34,7 +34,7 @@ int main() {
   assert(regex_match(str1 + 1, str1 + 2, regex("\\ba\\b"),
                      regex_constants::match_not_bow |
                          regex_constants::match_prev_avail));
-  assert(regex_search(str1, regex("\\ba"),
+  assert(regex_search(str1_scnd, regex("\\ba"),
                       regex_constants::match_not_bow |
                           regex_constants::match_prev_avail));
 


        


More information about the libcxx-commits mailing list