From: Matthias Dieter Wallnöfer Date: Tue, 4 Sep 2012 16:27:48 +0000 (+0200) Subject: LDB:test-generic.sh - fix smaller/greater comparison tests X-Git-Url: http://git.samba.org/samba.git/?p=mdw%2Fsamba.git;a=commitdiff_plain;h=118a2eee516e1bf8c4c7b799f00fab2f567ac58d LDB:test-generic.sh - fix smaller/greater comparison tests Result has been ignored. --- diff --git a/lib/ldb/tests/test-generic.sh b/lib/ldb/tests/test-generic.sh index e1f8e79e21..88f71fde9a 100755 --- a/lib/ldb/tests/test-generic.sh +++ b/lib/ldb/tests/test-generic.sh @@ -119,16 +119,20 @@ echo "*TODO* Testing UTF8 upper lower case searches !!" echo "Testing compare" count=`$VALGRIND ldbsearch '(cn>=t)' cn | grep '^dn' | wc -l` -if [ $count != 2 ]; then - echo returned $count records - expected 2 - echo "this fails on openLdap ..." +if [ $count != 1 ]; then + # only "cn: test_multi_test_multi_test_multi" (comes after "t") + # upper-cased words come before "t" - hence excluded + echo returned $count records - expected 1 + exit 1 fi $VALGRIND ldbsearch '(cn>t)' cn && exit 1 # strictly greater should not work count=`$VALGRIND ldbsearch '(cn<=t)' cn | grep '^dn' | wc -l` -if [ $count != 13 ]; then - echo returned $count records - expected 13 - echo "this fails on openLdap ..." +if [ $count != 18 ]; then + # everything except "cn: test_multi_test_multi_test_multi" (comes after "t") + # upper-cased letters come before "t" - hence included + echo returned $count records - expected 18 + exit 1 fi $VALGRIND ldbsearch '(cn