summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichard.freedman%sun.com <devnull@localhost>2006-05-11 19:28:14 +0000
committerrichard.freedman%sun.com <devnull@localhost>2006-05-11 19:28:14 +0000
commit5625d1be5a707ad32777141fdd7fb6cbb3346bf9 (patch)
tree5801f6652fe5bd4051f345de44f4b11b37afe97f
parent6efd45d69ab35a597ef783d02f55e3041894546a (diff)
downloadnss-hg-5625d1be5a707ad32777141fdd7fb6cbb3346bf9.tar.gz
Replace \n in output with outputting a blank line before or after the string
which had contained the \n. Echo doesn't handle \n right on all systems.
-rw-r--r--security/nss/tests/libpkix/common/libpkix_init.sh27
1 files changed, 18 insertions, 9 deletions
diff --git a/security/nss/tests/libpkix/common/libpkix_init.sh b/security/nss/tests/libpkix/common/libpkix_init.sh
index 08aaa8c12..1a12c7def 100644
--- a/security/nss/tests/libpkix/common/libpkix_init.sh
+++ b/security/nss/tests/libpkix/common/libpkix_init.sh
@@ -164,9 +164,11 @@ testHeadingEcho()
testEndingEcho()
{
if [ ${totalErrors} -eq 0 ]; then
- echo "\n************************************************************"
+ echo ""
+ echo "************************************************************"
echo "END OF TESTS FOR ${testunit}: ALL TESTS COMPLETED SUCCESSFULLY"
- echo "************************************************************\n"
+ echo "************************************************************"
+ echo ""
return 0
fi
@@ -176,9 +178,11 @@ testEndingEcho()
plural="S"
fi
- echo "\n************************************************************"
+ echo ""
+ echo "************************************************************"
echo "END OF TESTS FOR ${testunit}: ${totalErrors} TEST${plural} FAILED"
- echo "************************************************************\n"
+ echo "************************************************************"
+ echo ""
return ${totalErrors}
}
@@ -306,9 +310,11 @@ RunTests()
if [ ${errors} -eq 0 ]; then
if [ ${memErrors} -eq 0 ]; then
- Display "\n************************************************************"
+ Display ""
+ Display "************************************************************"
Display "END OF TESTS FOR PKIX ${testunit}: ALL TESTS COMPLETED SUCCESSFULLY"
- Display "************************************************************\n"
+ Display "************************************************************"
+ Display ""
return 0
fi
fi
@@ -319,8 +325,10 @@ RunTests()
plural="S"
fi
- Display "\n*******************************************************************************"
- Display "END OF TESTS FOR PKIX ${testunit}: ${errors} UNIT TEST${plural} FAILED: ${failedpgms}\n"
+ Display ""
+ Display "*******************************************************************************"
+ Display "END OF TESTS FOR PKIX ${testunit}: ${errors} UNIT TEST${plural} FAILED: ${failedpgms}"
+ Display ""
if [ ${checkmem} -eq 1 ]; then
if [ ${memErrors} -eq 1 ]; then
memPlural=""
@@ -339,7 +347,8 @@ RunTests()
fi
fi
- Display "*******************************************************************************\n"
+ Display "*******************************************************************************"
+ Display ""
combinedErrors=`expr ${errors} + ${memErrors} + ${prematureErrors}`
return ${combinedErrors}