style fixes in bin/echo/tests

Submitted by:	shivansh
Reviewed by:	asomers
MFC after:	2 weeks
X-MFC-With:	319626
Sponsored by:	Google, Inc (GSoC 2017)
Differential Revision:	https://reviews.freebsd.org/D11318
This commit is contained in:
Alan Somers 2017-06-23 15:02:49 +00:00
parent a61847217d
commit f01753c151
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=320269

View File

@ -27,29 +27,33 @@
#
atf_test_case n_output
n_output_head() {
atf_set "descr" "Verify that echo(1) does not print the trailing " \
"newline character with option '-n'"
n_output_head()
{
atf_set "descr" "Verify that echo(1) does not print the trailing " \
"newline character with option '-n'"
}
n_output_body() {
atf_check -s ignore -o inline:"Hello world" \
/bin/echo -n "Hello world"
n_output_body()
{
atf_check -s ignore -o inline:"Hello world" \
/bin/echo -n "Hello world"
}
atf_test_case append_c_output
append_c_output_head() {
atf_set "descr" "Verify that echo(1) does not print the trailing newline " \
"character when '\c' is appended to the end of the string"
append_c_output_head()
{
atf_set "descr" "Verify that echo(1) does not print the trailing newline " \
"character when '\c' is appended to the end of the string"
}
append_c_output_body() {
atf_check -s ignore -o inline:"Hello world" \
/bin/echo "Hello world\c"
append_c_output_body()
{
atf_check -s ignore -o inline:"Hello world" \
/bin/echo "Hello world\c"
}
atf_init_test_cases()
{
atf_add_test_case n_output
atf_add_test_case append_c_output
atf_add_test_case n_output
atf_add_test_case append_c_output
}