From: lacton <la...@us...> - 2008-05-12 18:58:34
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv14873 Modified Files: autoSuiteUnitTest Log Message: [fix] Improved the behavior of the mock 'declare' function for bash. Index: autoSuiteUnitTest =================================================================== RCS file: /cvsroot/shunit/ShUnit/autoSuiteUnitTest,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** autoSuiteUnitTest 12 May 2008 14:43:51 -0000 1.5 --- autoSuiteUnitTest 12 May 2008 18:58:19 -0000 1.6 *************** *** 23,31 **** declare() { ! if [ "$1" = "-F" ] ! then ! echo "declare -f func1" ! echo "declare -f func2" ! fi } --- 23,38 ---- declare() { ! case "$1" in ! -F) ! echo "declare -f func1" ! echo "declare -f func2" ! ;; ! +f) ! echo "...something hard to parse..." ! ;; ! *) ! echo "'$1' option not implemented in this mock function" >&2 ! ;; ! esac } |