--- old/usr/src/suites/net/nc/tests/lflag/tp_lflag_014_pos.ksh Wed Nov 4 22:35:29 2009 +++ /dev/null Wed Nov 4 22:35:28 2009 @@ -1,39 +0,0 @@ -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2008 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)tp_lflag_014_pos.ksh 1.1 08/11/10 SMI" -# - -function listen_pflag_exc_arg -{ - tc_id="listen-usage-excessive-arg-with-pflag" - tc_desc="excessive arguments with -l and -p flags should fail" - init_test - - listen_wrapper \ - "-lp $test_port 127.0.0.1 fubar" \ - "127.0.0.1 $test_port" 1 - finish_test -} --- /dev/null Wed Nov 4 22:35:28 2009 +++ new/usr/src/suites/net/nc/tests/lflag/tp_lflag_014_neg.ksh Wed Nov 4 22:35:29 2009 @@ -0,0 +1,39 @@ +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License (the "License"). +# You may not use this file except in compliance with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# + +# +# Copyright 2008 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +# ident "@(#)tp_lflag_014_pos.ksh 1.1 08/11/10 SMI" +# + +function listen_pflag_exc_arg +{ + tc_id="listen-usage-excessive-arg-with-pflag" + tc_desc="excessive arguments with -l and -p flags should fail" + init_test + + listen_wrapper \ + "-lp $test_port 127.0.0.1 fubar" \ + "127.0.0.1 $test_port" 1 + finish_test +}