From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 90148 invoked by alias); 27 Sep 2017 20:16:32 -0000 Mailing-List: contact libstdc++-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libstdc++-owner@gcc.gnu.org Received: (qmail 89852 invoked by uid 89); 27 Sep 2017 20:16:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=Franois, franois, highly X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-wr0-f181.google.com Received: from mail-wr0-f181.google.com (HELO mail-wr0-f181.google.com) (209.85.128.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 27 Sep 2017 20:16:27 +0000 Received: by mail-wr0-f181.google.com with SMTP id 108so18500018wra.5; Wed, 27 Sep 2017 13:16:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=KnbpceuF2/uo4hNWOI5ESeRVoT8vDG3d6OcyOVyproQ=; b=XwEkRrHM4qm7sqZgElDkrRYoVnQUh1SUdrdN/TFH/W0423/XmfHo0uB5KFTHQn5Yhq CxMAnadT1jxgq9xXWLyDvbtUckWrXKgo8P4ImUPxf1yNKD06KnoQfDkGotTMK9i9fqfy yJFBENSPHXGt4+gVwpw10TTb7xSrr8Cu8IDSMz9Bc/Goj8l08x0ZcCPniycufWL5qpUb 4q4OYhVnBQL9Yc3bBYk8NS+pvjL9vWA78oxQvak0WeL4Jmp5XNucv5+0ku+ah67y0Hdo /VjVWS9QqRsODKqu+pfEu1rCvnM36M7ihXFvYYHSeA0mp6JtthZ3Wu3vtGg3w3+yxNS1 TlAg== X-Gm-Message-State: AHPjjUhlQ6QvMfZd7QJYA2JeXIVydW3d0U8kAvRCzwn+37LeI4zo4wlP hGlYjOLeGP2j9hB9i7Wt8M3U4A== X-Google-Smtp-Source: AOwi7QCkwD9nMrSrQkyZZ0wlKuXVnqnniaQZJ/Vqd206/YyOOFGrhH/kylpWUiK8dY8neXFQqzhsBQ== X-Received: by 10.223.182.166 with SMTP id j38mr2705950wre.55.1506543384592; Wed, 27 Sep 2017 13:16:24 -0700 (PDT) Received: from [192.168.0.23] (arf62-1-82-237-250-248.fbx.proxad.net. [82.237.250.248]) by smtp.googlemail.com with ESMTPSA id 10sm97738wmy.35.2017.09.27.13.16.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Sep 2017 13:16:23 -0700 (PDT) To: "libstdc++@gcc.gnu.org" , gcc-patches From: =?UTF-8?Q?Fran=c3=a7ois_Dumont?= Subject: Make tests less istreambuf_iterator implementation dependent Message-ID: <154b3b11-5b95-2c81-fb4d-408e9e0db374@gmail.com> Date: Wed, 27 Sep 2017 20:16:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------5DB0389236348F38353070F1" X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00093.txt.bz2 This is a multi-part message in MIME format. --------------5DB0389236348F38353070F1 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-length: 536 Hi     I just committed attached patch as trivial.     Those tests were highly istreambuf_iterator implementation, it is the result of the call to money_get<>::get which is pointing immediately beyond the last character recognized to quote Standard words. 2017-09-27  François Dumont      * testsuite/22_locale/money_get/get/char/22131.cc: Make test less     istreambuf_iterator implementation dependent.     * testsuite/22_locale/money_get/get/wchar_t/22131.cc: Likewise. François --------------5DB0389236348F38353070F1 Content-Type: text/x-patch; name="tests.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="tests.patch" Content-length: 1218 diff --git a/libstdc++-v3/testsuite/22_locale/money_get/get/char/22131.cc b/libstdc++-v3/testsuite/22_locale/money_get/get/char/22131.cc index 6f363ef..5a05817 100644 --- a/libstdc++-v3/testsuite/22_locale/money_get/get/char/22131.cc +++ b/libstdc++-v3/testsuite/22_locale/money_get/get/char/22131.cc @@ -67,7 +67,7 @@ void test01() fmt2.imbue(loc); InIt ibeg2(fmt2); err2 = ios_base::goodbit; - mg.get(ibeg2, iend2, intl, fmt2, err2, val2); + ibeg2 = mg.get(ibeg2, iend2, intl, fmt2, err2, val2); VERIFY( err2 == ios_base::failbit ); VERIFY( *ibeg2 == '#' ); VERIFY( val2 == "" ); diff --git a/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/22131.cc b/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/22131.cc index 3830cc3..0626e3c 100644 --- a/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/22131.cc +++ b/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/22131.cc @@ -67,7 +67,7 @@ void test01() fmt2.imbue(loc); InIt ibeg2(fmt2); err2 = ios_base::goodbit; - mg.get(ibeg2, iend2, intl, fmt2, err2, val2); + ibeg2 = mg.get(ibeg2, iend2, intl, fmt2, err2, val2); VERIFY( err2 == ios_base::failbit ); VERIFY( *ibeg2 == L'#' ); VERIFY( val2 == L"" ); --------------5DB0389236348F38353070F1--