NetBSD Problem Report #55612

From martin@aprisoft.de  Fri Aug 28 16:52:34 2020
Return-Path: <martin@aprisoft.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 63BB31A923A
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 28 Aug 2020 16:52:34 +0000 (UTC)
Message-Id: <20200828165224.243135CC7A5@emmas.aprisoft.de>
Date: Fri, 28 Aug 2020 18:52:24 +0200 (CEST)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: libarchive tests pollute /tmp w/o cleanup
X-Send-Pr-Version: 3.95

>Number:         55612
>Category:       bin
>Synopsis:       libarchive tests pollute /tmp w/o cleanup
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 28 16:55:00 +0000 2020
>Last-Modified:  Fri Aug 28 18:50:01 +0000 2020
>Originator:     Martin Husemann
>Release:        NetBSD 9.99.71
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD h-pulse.aprisoft.de 9.99.71 NetBSD 9.99.71 (GENERIC64) #154: Fri Aug 28 10:38:10 CEST 2020 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/evbarm/compile/GENERIC64 evbarm
Architecture: aarch64
Machine: evbarm
>Description:

Running the /usr/tests/lib/libarchive tests pollutes /tmp and does not clean
up. Tests are not supposed to make changes anywhere outside the temporary
ATF directory, and also are expected to clean up fully.

>How-To-Repeat:

ls -l /tmp; cd /usr/tests/lib/libarchive && atf-run; ls -l /tmp

>Fix:
Set TMPDIR to . during the test?

>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/55612 CVS commit: src/external/bsd/libarchive/dist/libarchive/test
Date: Fri, 28 Aug 2020 14:44:54 -0400

 Module Name:	src
 Committed By:	christos
 Date:		Fri Aug 28 18:44:54 UTC 2020

 Modified Files:
 	src/external/bsd/libarchive/dist/libarchive/test:
 	    test_write_disk_secure.c

 Log Message:
 PR/55612: Martin Husemann: libarchive tests pollute /tmp w/o cleanup
 Make tests obey $TMPDIR.


 To generate a diff of this commit:
 cvs rdiff -u -r1.3 -r1.4 \
     src/external/bsd/libarchive/dist/libarchive/test/test_write_disk_secure.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/55612 CVS commit: src/tests/lib/libarchive
Date: Fri, 28 Aug 2020 14:46:05 -0400

 Module Name:	src
 Committed By:	christos
 Date:		Fri Aug 28 18:46:05 UTC 2020

 Modified Files:
 	src/tests/lib/libarchive: t_libarchive.sh

 Log Message:
 PR/55612: Martin Husemann: libarchive tests pollute /tmp w/o cleanup
 Set $TMPDIR to where we are.


 To generate a diff of this commit:
 cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libarchive/t_libarchive.sh

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.