From nobody Fri Dec 17 11:39:05 2021 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1313518EECE4; Fri, 17 Dec 2021 11:39:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JFn7Y6JcVz4kXh; Fri, 17 Dec 2021 11:39:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A289C1B302; Fri, 17 Dec 2021 11:39:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BHBd5kQ073961; Fri, 17 Dec 2021 11:39:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BHBd5a6073960; Fri, 17 Dec 2021 11:39:05 GMT (envelope-from git) Date: Fri, 17 Dec 2021 11:39:05 GMT Message-Id: <202112171139.1BHBd5a6073960@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: 2f3c018ba8e8 - main - test-includes: use the same header set for badfiles.inc as for testing List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2f3c018ba8e8e807784c6af06665c8eb08a99292 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639741147; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=027BGSpXG7gjYJ3dWg0PxpIMWyMdTy+QVZgJ6bZSE7Y=; b=lpJVnMMncpURUmctK1tNmEP+6SIxaOQoi+RUPhpSAqfrkAqSyOM3aq+wCrmwZGQ6TjiLFU UuIiOxY/VnFZf3anIg4WfCc1nvwgoXS397C1ybHxJnlA8EYIkEFao1P4VsUnxz6gWMFTne Jc2Tnq8NnWpjbW4Gcb9QynfzFSCG6+bUCEfnVSVvaWgR7dG6QuTqRRjPVQREv1t2+u+iWu IheH41u9Tn9R+n+HIwUsS2k0a0r2gXIKyfa4zxL5GG1iWXxhImG6P88cGjSn9lOma0UxVm HTAWig55gWuYxBae3b1ICoMKBmoSbNaBuCzhq/atH+dOXpWYBkggyz3bcDbO7A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639741147; a=rsa-sha256; cv=none; b=eK+E/nP97Rq1w0Fn1HZCcA3Y6MsWY/ufFWIbn5ZsN/Ev1MQAAkAIcrTAACb4kdsL7Knw4g RcOF4pi2msO4lWK2OiDFxPYY2cyac7KUo03tUIHLTpiuEjUvI2w2skBJhazOxXuQGicpld 7rZD64zS7FLa6I4XwE7Yg6pZGeCPX7QMzL88VE62Vk1CL68PNqcOTk7CYnLWtcTqEaQ6ms ilpyyGO2eykhSC26RFFUzTZJGxSLfjnfeAAcyoa6P9tYWMVFu+wbFIHeAqkDGRR6dTxnBu /LONnxM6OSiMwILnerwd9bx8bZfNCXds74Ny6p5XET/9IEcwho5FxNr6+rgP2g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=2f3c018ba8e8e807784c6af06665c8eb08a99292 commit 2f3c018ba8e8e807784c6af06665c8eb08a99292 Author: Kristof Provost AuthorDate: 2021-12-16 08:53:42 +0000 Commit: Kristof Provost CommitDate: 2021-12-17 11:38:35 +0000 test-includes: use the same header set for badfiles.inc as for testing This ensures we don't end up listing files we've excluded (e.g. those starting with _). Add a slight hack to preserve the existing order (sys, then net) in badfiles.inc. Reviewed by: imp Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D33505 --- tools/build/test-includes/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/build/test-includes/Makefile b/tools/build/test-includes/Makefile index b1e5023663af..3ae39a2cb61f 100644 --- a/tools/build/test-includes/Makefile +++ b/tools/build/test-includes/Makefile @@ -16,7 +16,7 @@ LIB= test-includes INTERNALLIB= This is a compile-only test MAN= -HDRS!= (cd ${SRCTOP}/sys; ls sys/[^_]*.h net*/[^_]*.h) +HDRS!= (cd ${SRCTOP}/sys; ls sys/[^_]*.h | sort ; ls net*/[^_]*.h | sort) NO_PIC= yes # Some files have to be clean for extra defines too... @@ -44,7 +44,7 @@ badfiles.inc: @(cd ${SRCTOP}/sys; \ echo "# DO NOT EDIT-- this file is automatically @""generated."; \ echo "BADHDRS= \\"; \ - for i in sys/*.h net*/*.h; do \ + for i in ${HDRS}; do \ echo "#include <$$i>" | \ ${CC} ${CFLAGS} -xc - -c -o /dev/null 2> /dev/null || \ echo " $$i \\"; \