Author: jilles
Date: Sun Aug 13 14:36:10 2017
New Revision: 322455
URL: https://svnweb.freebsd.org/changeset/base/322455

Log:
  sh: Add test for sh -c with missing command string.
  
  This already works correctly.

Added:
  head/bin/sh/tests/invocation/sh-c-missing1.0   (contents, props changed)
Modified:
  head/bin/sh/tests/invocation/Makefile

Modified: head/bin/sh/tests/invocation/Makefile
==============================================================================
--- head/bin/sh/tests/invocation/Makefile       Sun Aug 13 07:40:05 2017        
(r322454)
+++ head/bin/sh/tests/invocation/Makefile       Sun Aug 13 14:36:10 2017        
(r322455)
@@ -8,6 +8,7 @@ TESTSDIR=       ${TESTSBASE}/bin/sh/${.CURDIR:T}
 ATF_TESTS_SH=  functional_test
 
 ${PACKAGE}FILES+=      sh-ac1.0
+${PACKAGE}FILES+=      sh-c-missing1.0
 ${PACKAGE}FILES+=      sh-c1.0
 ${PACKAGE}FILES+=      sh-ca1.0
 ${PACKAGE}FILES+=      sh-fca1.0

Added: head/bin/sh/tests/invocation/sh-c-missing1.0
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/bin/sh/tests/invocation/sh-c-missing1.0        Sun Aug 13 14:36:10 
2017        (r322455)
@@ -0,0 +1,3 @@
+# $FreeBSD$
+
+! echo echo bad | ${SH} -c 2>/dev/null
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to