From patchwork Thu Aug 8 05:38:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Steinhardt X-Patchwork-Id: 13756962 Received: from fout2-smtp.messagingengine.com (fout2-smtp.messagingengine.com [103.168.172.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B98A6181BA8 for ; Thu, 8 Aug 2024 05:38:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.145 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723095513; cv=none; b=YqVlh9eCqeVMtmy115H1AcolVrAy7swMWnrd8qSy6xgjJVcqa/XL67/afn6MRH1boL5gbqOn3HZKSi26TePSZowjZ62BuoHP5bu5Git3b/xlvkjzYeEDKkfXNbz2vz9mqx0EPH5vdVNwlrFdFCaNsGM+NzI7xUugRy2d2snM4RY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723095513; c=relaxed/simple; bh=tkFeRyEn5Yk03Bn0wIZHZL+FHlDtcZEjrnLkMmaYQfA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DyxJvxFcps1ogyMLjncgN60rUEvhugQGNbYZivslx4Tp0II4pocB19dYACpXqu6QICfn7l8m5dX5JLRf3f/E9COmUkWoSNEWsMbOQSCyhCxK2cG3c3Fk/LALVePfYdaeum/sDR6d1b4+xCq21qFhkXMdvRbS0mzmfyis/3oHfm0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=pks.im; spf=pass smtp.mailfrom=pks.im; dkim=pass (2048-bit key) header.d=pks.im header.i=@pks.im header.b=j2tl71Jm; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=VVSSG4wO; arc=none smtp.client-ip=103.168.172.145 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=pks.im Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pks.im Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pks.im header.i=@pks.im header.b="j2tl71Jm"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="VVSSG4wO" Received: from compute8.internal (compute8.nyi.internal [10.202.2.227]) by mailfout.nyi.internal (Postfix) with ESMTP id E7384138FDF5; Thu, 8 Aug 2024 01:38:30 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute8.internal (MEProxy); Thu, 08 Aug 2024 01:38:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; h=cc:cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1723095510; x=1723181910; bh=XDfgzyJs1v nZMaodvPFKz/UpbIPYPIyen5/O6Omiou8=; b=j2tl71Jm9GIyym1AfIeqeD4PX2 z/48DE/nYhoNKz70uex1JQLsbsT7z42Ao5BYVrsciEgIYw8xEFAMEF2YceKmAumR feoiOC+LMzjQbgy2AYZ6piiqfO3Zn/GmeH0oOhzDfBmEfFAbZV50o3XPgloAktnc ybB2rp4LnD1yKTeVvfCZdnIKTpan4Q0nbKzpGX26O2JcM/G3NgBoaVZ6nsfyP5FW xtU1JNqRQT4JpqfV+u37YfzdFFYK3JxDUQpZqde+axrzpHRcx9p5/K3xXZjrXvqO RVeeHaSqrHGfKdWgwatBRMvehivszXk8U34adKSKVx9TC5KWZvre1rmT6hQQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1723095510; x=1723181910; bh=XDfgzyJs1vnZMaodvPFKz/UpbIPY PIyen5/O6Omiou8=; b=VVSSG4wOg3BQjlE4ojPUHAUjjf84N+9QJbAlaolwhkVb wzyKuF02+DSP3fvufMzvC6FRENPD0FZc+dtncXp4+pi9tv5a+fVzuEC9UimB42YB 6a6LDreFX4KJN0dfAaR8AC0aQ+Qjzt2HPJTaetyclVMo42rcMqmrJP2AKLSl6w6t VXNyMwcni7cJKbMBdm/wvAAO7qth0y8t2lLu+ILVu4LD/A7YopkQZ1lRC1JcldUz 5BeWH5vVtdnFbt1gAOxjrw+As5ep1/O/PditVbC6XMtOPtEuxh+Q3RHVtX8pgh0b XKiM0xQnay5GW/YlHIBINia2NEGrqfQ2GJaEJDVuKw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrledugdelkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddvnecu hfhrohhmpefrrghtrhhitghkucfuthgvihhnhhgrrhguthcuoehpshesphhkshdrihhmqe enucggtffrrghtthgvrhhnpeeljeetffevheeggeetkeetieduieeiieegieegtdffheeg kefhjeehfeekhfevleenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphhssehpkhhsrdhimhdp nhgspghrtghpthhtohepkedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheplhdrsh drrhesfigvsgdruggvpdhrtghpthhtohepshhtvggrughmohhnsehgohhoghhlvgdrtgho mhdprhgtphhtthhopegvthhhohhmshhonhesvggufigrrhguthhhohhmshhonhdrtghomh dprhgtphhtthhopehgihhtshhtvghrsehpohgsohigrdgtohhmpdhrtghpthhtohepghhi thesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehsphgvtghtrhgrlhesgh hoohhglhgvrdgtohhmpdhrtghpthhtoheprhhssggvtghkvghrsehnvgigsghrihgughgv rdgtohhmpdhrtghpthhtohepphhhihhllhhiphdrfihoohguseguuhhnvghlmhdrohhrgh druhhk X-ME-Proxy: Feedback-ID: i197146af:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 8 Aug 2024 01:38:29 -0400 (EDT) Received: by vm-mail (OpenSMTPD) with ESMTPSA id 21ae305a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 8 Aug 2024 05:38:23 +0000 (UTC) Date: Thu, 8 Aug 2024 07:38:27 +0200 From: Patrick Steinhardt To: git@vger.kernel.org Cc: =?utf-8?b?UmVuw6k=?= Scharfe , Junio C Hamano , Kyle Lippincott , Phillip Wood , Josh Steadmon , rsbecker@nexbridge.com, Edward Thomson Subject: [RFC PATCH v3 4/7] t/clar: fix compatibility with NonStop Message-ID: <7a76c21bcbe232c834bacc0f217371df4aef49c5.1723095269.git.ps@pks.im> References: Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: The NonStop platform does not have `mkdtemp()` available, which we rely on in `build_sandbox_path()`. Fix this issue by using `mktemp()` and `mkdir()` instead on this platform. This has been cherry-picked from the upstream pull request at [1]. [1]: https://github.com/clar-test/clar/pull/96 Signed-off-by: Patrick Steinhardt --- t/unit-tests/clar/clar/sandbox.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/t/unit-tests/clar/clar/sandbox.h b/t/unit-tests/clar/clar/sandbox.h index 7c177f3525..e25057b7c4 100644 --- a/t/unit-tests/clar/clar/sandbox.h +++ b/t/unit-tests/clar/clar/sandbox.h @@ -120,6 +120,12 @@ static int build_sandbox_path(void) if (_mktemp(_clar_path) == NULL) return -1; + if (mkdir(_clar_path, 0700) != 0) + return -1; +#elif defined(__TANDEM) + if (mktemp(_clar_path) == NULL) + return -1; + if (mkdir(_clar_path, 0700) != 0) return -1; #elif defined(_WIN32)