Wed Jan 9 12:49:35 PST 2008
- Previous message: [Slony1-commit] slony1-engine/tests run_test.sh
- Next message: [Slony1-commit] slony1-engine/doc/adminguide testbed.sgml
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /home/cvsd/slony1/slony1-engine/tests
In directory main.slony.info:/tmp/cvs-serv17611
Modified Files:
support_funcs.sh
Log Message:
Fix usability of C-based random data generators:
1. Change existence test to use -x (is program executable) rather than -e
(merely checking for existence)
2. Typo in string handling was throwing away string values when we ran
the C-based "random_string" program
Index: support_funcs.sh
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/tests/support_funcs.sh,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** support_funcs.sh 4 Oct 2007 15:32:31 -0000 1.7
--- support_funcs.sh 9 Jan 2008 20:49:33 -0000 1.8
***************
*** 90,94 ****
_upperbound=$2
! if [ -e ./random_number ] ; then
rannum=`./random_number ${_lowerbound} ${_upperbound}`
else
--- 90,94 ----
_upperbound=$2
! if [ -x ./random_number ] ; then
rannum=`./random_number ${_lowerbound} ${_upperbound}`
else
***************
*** 129,134 ****
_length=$1
! if [ -e ./random_string ] ; then
! rannum=`./random_string ${_length}`
else
case `uname` in
--- 129,134 ----
_length=$1
! if [ -x ./random_string ] ; then
! ranstring=`./random_string ${_length}`
else
case `uname` in
- Previous message: [Slony1-commit] slony1-engine/tests run_test.sh
- Next message: [Slony1-commit] slony1-engine/doc/adminguide testbed.sgml
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list