summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2019-03-18 22:12:09 +0000
committerEric Fiselier <eric@efcs.ca>2019-03-18 22:12:09 +0000
commitcc703de62fd745328a37a21143bd0e0941cbd745 (patch)
tree61480695180b56a0c69a1f3dc5a44276100817af
parent1dd518da7d25c04cd5330192269f32d59228d272 (diff)
downloadbcm5719-llvm-cc703de62fd745328a37a21143bd0e0941cbd745.tar.gz
bcm5719-llvm-cc703de62fd745328a37a21143bd0e0941cbd745.zip
Fix test failures after debug mode changes
llvm-svn: 356421
-rw-r--r--libcxx/test/support/debug_mode_helper.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/support/debug_mode_helper.h b/libcxx/test/support/debug_mode_helper.h
index 6a662d17e75..ed111ab127c 100644
--- a/libcxx/test/support/debug_mode_helper.h
+++ b/libcxx/test/support/debug_mode_helper.h
@@ -15,7 +15,7 @@
#include <ciso646>
#ifndef _LIBCPP_VERSION
-#error This header may only be used for libc++ tests"
+#error "This header may only be used for libc++ tests"
#endif
#include <__debug>
@@ -42,9 +42,9 @@ struct DebugInfoMatcher {
static constexpr const char* any_file = "*";
static constexpr const char* any_msg = "*";
- constexpr DebugInfoMatcher() : is_empty(true), msg(any_msg), file(any_file), line(any_line) { }
+ constexpr DebugInfoMatcher() : is_empty(true), msg(any_msg, __builtin_strlen(any_msg)), file(any_file, __builtin_strlen(any_file)), line(any_line) { }
constexpr DebugInfoMatcher(const char* msg, const char* file = any_file, int line = any_line)
- : is_empty(false), msg(msg), file(file), line(line) {}
+ : is_empty(false), msg(msg, __builtin_strlen(msg)), file(file, __builtin_strlen(file)), line(line) {}
bool Matches(std::__libcpp_debug_info const& got) const {
assert(!empty() && "empty matcher");
OpenPOWER on IntegriCloud