public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/ranger] libstdc++: Add missing call to unused subroutine in split_view test
@ 2020-06-17 19:02 Aldy Hernandez
  0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2020-06-17 19:02 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:38c7b74d2e9007677de9c931725c03133ffd3b89

commit 38c7b74d2e9007677de9c931725c03133ffd3b89
Author: Patrick Palka <ppalka@redhat.com>
Date:   Wed Feb 19 13:54:21 2020 -0500

    libstdc++: Add missing call to unused subroutine in split_view test
    
    libstdc++-v3/ChangeLog:
    
            * testsuite/std/ranges/adaptors/split.cc (test03): Don't include the
            null terminator of the underlying string as part of the test_range.
            (main): Call test03.

Diff:
---
 libstdc++-v3/ChangeLog                              | 6 ++++++
 libstdc++-v3/testsuite/std/ranges/adaptors/split.cc | 3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 7f3f8876957..74f4c8d817f 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,9 @@
+2020-02-19  Patrick Palka  <ppalka@redhat.com>
+
+	* testsuite/std/ranges/adaptors/split.cc (test03): Don't include the
+	null terminator of the underlying string as part of the test_range.
+	(main): Call test03.
+
 2020-02-19  Jonathan Wakely  <jwakely@redhat.com>
 
 	* include/bits/stl_iterator.h (common_iterator): Add copyable<I>
diff --git a/libstdc++-v3/testsuite/std/ranges/adaptors/split.cc b/libstdc++-v3/testsuite/std/ranges/adaptors/split.cc
index 129a8249f21..8b3bfcc0930 100644
--- a/libstdc++-v3/testsuite/std/ranges/adaptors/split.cc
+++ b/libstdc++-v3/testsuite/std/ranges/adaptors/split.cc
@@ -64,7 +64,7 @@ void
 test03()
 {
   char x[] = "the quick brown fox";
-  test_range<char, forward_iterator_wrapper> rx(x);
+  test_range<char, forward_iterator_wrapper> rx(x, x+sizeof(x)-1);
   auto v = rx | views::split(' ');
   auto i = v.begin();
   VERIFY( ranges::equal(*i++, "the"sv) );
@@ -79,4 +79,5 @@ main()
 {
   test01();
   test02();
+  test03();
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-17 19:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-17 19:02 [gcc/devel/ranger] libstdc++: Add missing call to unused subroutine in split_view test Aldy Hernandez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).