svn commit: r288325 - user/ngie/more-tests/bin/ls/tests

Garrett Cooper ngie at FreeBSD.org
Mon Sep 28 03:00:20 UTC 2015


Author: ngie
Date: Mon Sep 28 03:00:19 2015
New Revision: 288325
URL: https://svnweb.freebsd.org/changeset/base/288325

Log:
  Use daemon to start up nc and kill nc instead via pkill

Modified:
  user/ngie/more-tests/bin/ls/tests/ls_tests.sh

Modified: user/ngie/more-tests/bin/ls/tests/ls_tests.sh
==============================================================================
--- user/ngie/more-tests/bin/ls/tests/ls_tests.sh	Mon Sep 28 02:53:36 2015	(r288324)
+++ user/ngie/more-tests/bin/ls/tests/ls_tests.sh	Mon Sep 28 03:00:19 2015	(r288325)
@@ -53,7 +53,8 @@ create_test_inputs()
 	atf_check -e empty -s exit:0 mkdir .g
 	atf_check -e empty -s exit:0 mkfifo h
 	atf_check -e ignore -s exit:0 dd if=/dev/zero of=i count=1000 bs=1
-	atf_check -e empty -s exit:0 sh -c 'nc -lU j & sleep 2; kill %1'
+	atf_check -e empty -s exit:0 \
+	    sh -c "pid=${ATF_TMPDIR}/nc.pid; daemon -p \$pid nc -lU j; sleep 2; pkill -F \$pid"
 	atf_check -e empty -s exit:0 touch klmn
 	atf_check -e empty -s exit:0 touch opqr
 	atf_check -e empty -s exit:0 touch stuv


More information about the svn-src-user mailing list