diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-06-18 00:23:13 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-06-18 00:23:13 +0000 |
commit | ed4035059f09de4a92287b42ac0fb309490a476f (patch) | |
tree | e4292106ffe0fdfa33f358582fe3af292228db65 /libcxx/test/std/experimental/filesystem | |
parent | ef5d8bead1880659871c87d7aa01606e1029358a (diff) | |
download | bcm5719-llvm-ed4035059f09de4a92287b42ac0fb309490a476f.tar.gz bcm5719-llvm-ed4035059f09de4a92287b42ac0fb309490a476f.zip |
Add checkpoints to string allocation test to help with debugging arm failures.
llvm-svn: 273072
Diffstat (limited to 'libcxx/test/std/experimental/filesystem')
-rw-r--r-- | libcxx/test/std/experimental/filesystem/class.path/path.member/path.native.obs/string_alloc.pass.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libcxx/test/std/experimental/filesystem/class.path/path.member/path.native.obs/string_alloc.pass.cpp b/libcxx/test/std/experimental/filesystem/class.path/path.member/path.native.obs/string_alloc.pass.cpp index e5fe89670bd..4f90d64b8cd 100644 --- a/libcxx/test/std/experimental/filesystem/class.path/path.member/path.native.obs/string_alloc.pass.cpp +++ b/libcxx/test/std/experimental/filesystem/class.path/path.member/path.native.obs/string_alloc.pass.cpp @@ -27,6 +27,7 @@ #include "count_new.hpp" #include "min_allocator.h" #include "filesystem_test_helper.hpp" +#include "assert_checkpoint.h" namespace fs = std::experimental::filesystem; @@ -43,8 +44,10 @@ void doShortStringTest(MultiStringType const& MS) { const path p((const char*)MS); { DisableAllocationGuard g; // should not allocate + CHECKPOINT("short string default constructed allocator"); Str s = p.string<CharT>(); assert(s == value); + CHECKPOINT("short string provided allocator"); Str s2 = p.string<CharT>(Alloc{}); assert(s2 == value); } @@ -59,7 +62,7 @@ void doLongStringTest(MultiStringType const& MS) { const path p((const char*)MS); { // Default allocator using Alloc = std::allocator<CharT>; - RequireAllocationGuard g; // should not allocate because + RequireAllocationGuard g; Str s = p.string<CharT>(); assert(s == value); Str s2 = p.string<CharT>(Alloc{}); @@ -67,6 +70,7 @@ void doLongStringTest(MultiStringType const& MS) { } using MAlloc = malloc_allocator<CharT>; MAlloc::reset(); + CHECKPOINT("Malloc allocator test - default construct"); { // Other allocator - default construct using Traits = std::char_traits<CharT>; using AStr = std::basic_string<CharT, Traits, MAlloc>; @@ -77,6 +81,7 @@ void doLongStringTest(MultiStringType const& MS) { assert(MAlloc::outstanding_alloc() == 1); } MAlloc::reset(); + CHECKPOINT("Malloc allocator test - provided copy"); { // Other allocator - provided copy using Traits = std::char_traits<CharT>; using AStr = std::basic_string<CharT, Traits, MAlloc>; |