From patchwork Mon Apr 10 15:59:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joe Simmons-Talbott X-Patchwork-Id: 1767206 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=gBYwG61P; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PwDHD3Lyrz1yZK for ; Tue, 11 Apr 2023 02:01:28 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 691F5385773A for ; Mon, 10 Apr 2023 16:01:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 691F5385773A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1681142486; bh=GiIrGl1N0Yg7taVJ26+nguSa8dLNPi66jPUDlY1Zac4=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=gBYwG61POqGimjArseI+FI8g3uAFhBdeFbjMbH4zta7cNs4GV7fQe3vSxNnabjovc fckmF3e/2rzh8Ns+GasCVuRzFqqHBSV+KRJcaCl1Qqykm3FTyf1dok81taIz3PaNO1 eJ8LM7fHaRstSz4rD82fys6pzusoff084oqB/lJk= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 1BED03857709 for ; Mon, 10 Apr 2023 15:59:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1BED03857709 Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-335-GKHD8UzBPs-C0ZPUqoz2Yw-1; Mon, 10 Apr 2023 11:59:48 -0400 X-MC-Unique: GKHD8UzBPs-C0ZPUqoz2Yw-1 Received: by mail-qv1-f72.google.com with SMTP id pe26-20020a056214495a00b005df3eac4c0bso19695057qvb.1 for ; Mon, 10 Apr 2023 08:59:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681142387; x=1683734387; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GiIrGl1N0Yg7taVJ26+nguSa8dLNPi66jPUDlY1Zac4=; b=z2Hje8e/GWVHj7/L/cY559eHmXdhuh04MC9GHcx0oDQFbe/eOa8huvnbWFIy3pXH1M 4YhDzMcGkbiWu8Gy5Ulelfi06PLfcSGW8H/h/jNCG0x3r3zJuyOH3RiMPNBP2GXdY4nl ab/dTh8TM3o+f1nFSnXXvB/TlVl5pdXWWaJQ0sRipq8aDomzJXnxAd4aUzlKoi/DnjJs L1pu7xqKSlQ/UHYIfaaRPIfW8iRt+nWruw8m1nLyt6j3ZHh4wnEwrbSTAcdNaUOmAxcV Wkls9Z4uLmfAY2zoyZrqQHRRtrcN6e2jvujopffEtn1JMNDSX34xGRXp8KKopf85lWrW kosw== X-Gm-Message-State: AAQBX9cdvk2N5qsr5ZOKm8HNXB466vmnrOVWRYxVE2SvqQHWbS4mLwgw Mig+jH/uAf2TU/rzKN8hz94O17TDI4A9P2bc9g35+NkkS3cf/YFvAiseOQkt8eYT02mIlH4BhEM p52d0ZnzZRuHpax3AmRSkBslJGmsRu52TMccNgJrF7QFfx3dV57rxjQpckODIwbUPypAiHDgC1M iU/B3r X-Received: by 2002:a05:6214:2a8b:b0:5c9:422e:c7b9 with SMTP id jr11-20020a0562142a8b00b005c9422ec7b9mr19624943qvb.19.1681142387755; Mon, 10 Apr 2023 08:59:47 -0700 (PDT) X-Google-Smtp-Source: AKy350aPfaSlgTEmR13Y8LC+/pKQAxoLLu2q/+nj6hrNTbmKyajOhsoX802NB1Q7iy+K9/0mZ3XJtg== X-Received: by 2002:a05:6214:2a8b:b0:5c9:422e:c7b9 with SMTP id jr11-20020a0562142a8b00b005c9422ec7b9mr19624922qvb.19.1681142387492; Mon, 10 Apr 2023 08:59:47 -0700 (PDT) Received: from oak.redhat.com (c-71-206-142-238.hsd1.va.comcast.net. [71.206.142.238]) by smtp.gmail.com with ESMTPSA id h2-20020ad45442000000b005dd8b9345e0sm3470413qvt.120.2023.04.10.08.59.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Apr 2023 08:59:47 -0700 (PDT) To: libc-alpha@sourceware.org Cc: Joe Simmons-Talbott Subject: [PATCH v4 4/4] wcsmbs: Add wcsdup() tests. (BZ #30266) Date: Mon, 10 Apr 2023 11:59:34 -0400 Message-Id: <20230410155934.3503627-5-josimmon@redhat.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230410155934.3503627-1-josimmon@redhat.com> References: <20230329150500.2886135-1-josimmon@redhat.com> <20230410155934.3503627-1-josimmon@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Joe Simmons-Talbott via Libc-alpha From: Joe Simmons-Talbott Reply-To: Joe Simmons-Talbott Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" Enable wide character testcases for wcsdup(). Reviewed-by: Adhemerval Zanella --- wcsmbs/Makefile | 2 +- wcsmbs/test-wcsdup.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 wcsmbs/test-wcsdup.c diff --git a/wcsmbs/Makefile b/wcsmbs/Makefile index b12a3b0750..bd39335b0e 100644 --- a/wcsmbs/Makefile +++ b/wcsmbs/Makefile @@ -49,7 +49,7 @@ routines := wcscat wcschr wcscmp wcscpy wcscspn wcsdup wcslen wcsncat \ strop-tests := wcscmp wcsncmp wmemcmp wcslen wcschr wcsrchr wcscpy wcsnlen \ wcpcpy wcsncpy wcpncpy wcscat wcsncat wcschrnul wcsspn wcspbrk \ - wcscspn wmemchr wmemset + wcscspn wmemchr wmemset wcsdup tests := tst-wcstof wcsmbs-tst1 tst-wcsnlen tst-btowc tst-mbrtowc \ tst-wcrtomb tst-wcpncpy tst-mbsrtowcs tst-wchar-h tst-mbrtowc2 \ tst-c16c32-1 wcsatcliff tst-wcstol-locale tst-wcstod-nan-locale \ diff --git a/wcsmbs/test-wcsdup.c b/wcsmbs/test-wcsdup.c new file mode 100644 index 0000000000..e39e063d0b --- /dev/null +++ b/wcsmbs/test-wcsdup.c @@ -0,0 +1,2 @@ +#define WIDE 1 +#include "../string/test-strdup.c"