From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 65CB8158086 for ; Mon, 18 Oct 2021 08:48:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8A4E7E088A; Mon, 18 Oct 2021 08:48:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 75D1FE088A for ; Mon, 18 Oct 2021 08:48:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6C0A334346B for ; Mon, 18 Oct 2021 08:48:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 08331165 for ; Mon, 18 Oct 2021 08:48:47 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1634538790.3ddaca746855efb229595738f33a9ba00e8f001b.vapier@gentoo> Subject: [gentoo-commits] proj/sandbox:master commit in: libsbutil/ X-VCS-Repository: proj/sandbox X-VCS-Files: libsbutil/get_sandbox_conf.c X-VCS-Directories: libsbutil/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 3ddaca746855efb229595738f33a9ba00e8f001b X-VCS-Branch: master Date: Mon, 18 Oct 2021 08:48:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0a6521c0-79cd-4cb4-ad83-42addfdf335c X-Archives-Hash: 5a81de7b9264fd7b0e5f34b08d14d759 commit: 3ddaca746855efb229595738f33a9ba00e8f001b Author: Mike Frysinger gentoo org> AuthorDate: Mon Oct 18 06:33:10 2021 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Mon Oct 18 06:33:10 2021 +0000 URL: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=3ddaca74 libsbutil: add assert to testing code path This makes it more obvious when the env is (incorrectly) partially setup. Signed-off-by: Mike Frysinger gentoo.org> libsbutil/get_sandbox_conf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libsbutil/get_sandbox_conf.c b/libsbutil/get_sandbox_conf.c index af0140e..1178f8a 100644 --- a/libsbutil/get_sandbox_conf.c +++ b/libsbutil/get_sandbox_conf.c @@ -19,6 +19,7 @@ char *get_sandbox_conf(void) save_errno(); if (is_env_on(ENV_SANDBOX_TESTING)) { char *abs = getenv("abs_top_srcdir"); + sb_assert(abs != NULL); ret = xmalloc(strlen(abs) + strlen(LOCAL_SANDBOX_CONF_FILE) + 1); sprintf(ret, "%s%s", abs, LOCAL_SANDBOX_CONF_FILE); }