Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Feb 2020 08:45:36 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r357691 - user/pho/stress2/misc
Message-ID:  <202002090845.0198jaTW073554@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pho
Date: Sun Feb  9 08:45:36 2020
New Revision: 357691
URL: https://svnweb.freebsd.org/changeset/base/357691

Log:
  Run test from /tmp. Fix cleanup.

Modified:
  user/pho/stress2/misc/fexecve.sh

Modified: user/pho/stress2/misc/fexecve.sh
==============================================================================
--- user/pho/stress2/misc/fexecve.sh	Sun Feb  9 08:39:16 2020	(r357690)
+++ user/pho/stress2/misc/fexecve.sh	Sun Feb  9 08:45:36 2020	(r357691)
@@ -56,7 +56,7 @@ main(int argc __unused, char **argv)
 
 	sz = 16 * 4096;
 
-	(void)snprintf(template, sizeof(template), "test.XXXXXX");
+	(void)snprintf(template, sizeof(template), "fexecve.XXXXXX");
 	fd = mkstemp(template);
 	if (fd < 0)
 		err(1, "mkstemp");
@@ -91,6 +91,6 @@ main(int argc __unused, char **argv)
 EOF
 cc -o /tmp/fexecve -Wall -Wextra -O2 /tmp/fexecve.c || exit 1
 echo "Expect: fexecve: fexecve: Input/output error"
-/tmp/fexecve
+(cd /tmp; /tmp/fexecve)
 
-rm -f /tmp/fexecve /tmp/fexecve.c
+rm -f /tmp/fexecve /tmp/fexecve.c /tmp/fexecve.??????



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002090845.0198jaTW073554>