From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by inbox.vuxu.org (Postfix) with SMTP id CC4A42E831 for ; Fri, 6 Sep 2024 03:36:43 +0200 (CEST) Received: (qmail 32264 invoked by uid 550); 6 Sep 2024 01:36:37 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 32231 invoked from network); 6 Sep 2024 01:36:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boeing.com; s=boeing-s1912; t=1725586589; bh=5XbjuysQWd6Bh7P5qvkUqS9SVxnIFtGsD5a8KdunO0c=; h=From:To:Subject:Date:From; b=ME+3HZY3CEQNqY2wAeFj7ga9P9Uqe6gzi+3MfXAhhuC+/03xn/EIc6Hd3wDGOl4Fu Gj9pchRmtxSylI+q/YMAxsv4N5EnY11g2fhUHsj/0AsO/Yhvhi10YpIvMvVJptlHhK wGB6LfR4Kp/wBSCp2BUFeKrJKvWg6P1dTn2E8nPs3TepxQHW5t2dFCNmEEtyPXzsng Bo9JIOZY6olhILNkLtiu8QaK3hH6Q6VADSUwYFhinQ354m8ahyj41iwENRoGltpYEp hFM2Mw3NrXG52eTNXeVB97OfpjhAtPGmgX9yPfHuXBfTyxUSzpYfGwVGjjXcpGPURz EvH+KkyNLaWYw== From: "Gardner, Ryan P" To: "musl@lists.openwall.com" Thread-Topic: Storing common macros and function stubs in libc-test Thread-Index: Adr//NW7K18AaQSUQEKrlzAcH2BEsQ== Date: Fri, 6 Sep 2024 01:36:17 +0000 Message-ID: <5f0aa778c8744d6fa08cda40e553ee4b@boeing.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [137.137.12.6] x-tm-snts-smtp: A1E6F9910BDCDA29E2797C828D23F98E6178BE8DF7440A30576807837EDFD9152000:8 Content-Type: multipart/alternative; boundary="_000_5f0aa778c8744d6fa08cda40e553ee4bboeingcom_" MIME-Version: 1.0 X-TM-AS-GCONF: 00 Subject: [musl] Storing common macros and function stubs in libc-test --_000_5f0aa778c8744d6fa08cda40e553ee4bboeingcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, I am currently writing some test cases to contribute to libc-test. In regards to reusing common macros and function stubs, where would be the most appropriate place to put these? Should these be added to `test.h`? Would a new `utils.h` header file be more appropriate? A new file would ensure no rework/unexpected redefines with already existing tests. Or should the macros needed for a given test be defined within that test file, even if many tests use the same macros. For example #define TEST(c, ...). Kind regards, Ryan --_000_5f0aa778c8744d6fa08cda40e553ee4bboeingcom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

 

I am currently writing some test cases to contribute= to libc-test.

In regards to reusing common macros and function stu= bs, where would

be the most appropriate place to put these? Should t= hese be added

to `test.h`? Would a new `utils.h` header file be mo= re appropriate?

A new file would ensure no rework/unexpected redefin= es with already

existing tests. Or should the macros needed for a gi= ven test be

defined within that test file, even if many tests us= e the same

macros. For example #define TEST(c, …).

 

Kind regards,

Ryan

--_000_5f0aa778c8744d6fa08cda40e553ee4bboeingcom_--