From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua1-x92b.google.com (mail-ua1-x92b.google.com [IPv6:2607:f8b0:4864:20::92b]) by sourceware.org (Postfix) with ESMTPS id 33F033953829 for ; Thu, 17 Nov 2022 08:11:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 33F033953829 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ua1-x92b.google.com with SMTP id y18so312652uae.8 for ; Thu, 17 Nov 2022 00:11:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=fAuRwRQoElFOQb+hpXdO7XBXbr0GTrVw2jij2ZIrYGg=; b=XPeUAElRVxPWzlHxvneQvUMVv6c6pajJpKXpOTmhMw50ymg595MKUXcfmK/BWJlmPN mGtrCMciUhyeKB66VbrxKnHvNqsMsCvaO9bnuxgitT1YR+IXea5fwpFeHJ9xwDdNY69G S3wV1Vj5dCDZTMoma2ItFIrTTI79j+Mh2XWZa7AvmmdL6JLnhF75goAoDRlV4BJ4R3eu 8gke3zqDxdvsUDIe96nM6jxwquku+TnXEIjgy4aZAsh7oJLP20rIvzS54v9P0kRXqVNR INAQZ9T74AQ2s0GqXAHF/VddaN57S7bv65vTgnS9VPVLQX82D3305m1XAeq/sX867Qpq dFwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fAuRwRQoElFOQb+hpXdO7XBXbr0GTrVw2jij2ZIrYGg=; b=XQZrX/eeAj25C8iRN6//h8yjeYRgoya2AH932CG8UEZFfZaK7uiXgsvc77fPR6dmWh 98ptozJ22wE1gVo/NceVqtm0/RAs8Ctmdplz1zAVO57HdikEJ5cXCbsTvqaNhpTsBFgY fs0pWSJ9OJOhgp1/+Y+hI85KJIii9aWNdt75NUP+xPwyKFohuqBDYijrDvexn+/RPi/S RG9xF4Lvj/uIV+OCBoT6dagk24z650KaIc8ocb7q6ocl9ple1shgDLqFTXI9GLx0WDKX tXyq29j4X2VoqjMVk/jUoR3wvV7ujIofK1eC/eGFqmEQWEuIjvR/4nQdQnSBklw2uJbD VStw== X-Gm-Message-State: ANoB5pna1ptrf7ddl+eWjzRU5a3lq9AzwXoEnedoabTC+8Ik0H7mqRQ1 zGjq8MjFm05dXZRkRXlhHWCwUVviXOSkLHFhaBs= X-Google-Smtp-Source: AA0mqf48UpAAXLAZt/GAddJloNVh8Z7nVy1WVCCrbm9DduSlKf0pD9nFmGCEsoQoAL11xb2/6kHBVBu4TF9Hcibcp+0= X-Received: by 2002:ab0:2084:0:b0:410:4a79:c359 with SMTP id r4-20020ab02084000000b004104a79c359mr563043uak.22.1668672684483; Thu, 17 Nov 2022 00:11:24 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Csaba Raduly Date: Thu, 17 Nov 2022 09:11:11 +0100 Message-ID: Subject: Re: Writing unit tests for newlib/libc/unix/dirname.c To: Kevin Connor Arpe Cc: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 List-Id: On Wed, 16 Nov 2022 at 18:57, Kevin Connor Arpe wrote: > I am trying to write unit tests for newlib/libc/unix/dirname.c. > (That function has so many tricky corner cases!) > I tried to follow from: newlib/testsuite/newlib.string/memcpy-1.c > However, I cannot make unit tests run via: make test > > What am I doing wrong? You didn't tell us what happened when you ran make test. Csaba -- You can get very substantial performance improvements by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler So if you're looking for a completely portable, 100% standards-conformant way to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)