Index: openacs-4/packages/acs-authentication/tcl/test/acs-authentication-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-authentication/tcl/test/acs-authentication-procs.tcl,v diff -u -N -r1.42.8.1 -r1.42.8.2 --- openacs-4/packages/acs-authentication/tcl/test/acs-authentication-procs.tcl 30 Sep 2013 18:26:48 -0000 1.42.8.1 +++ openacs-4/packages/acs-authentication/tcl/test/acs-authentication-procs.tcl 2 Oct 2013 08:29:06 -0000 1.42.8.2 @@ -681,7 +681,7 @@ aa_false "Param UseEmailForLoginP 0 -> false" [auth::UseEmailForLoginP] array set elms [auth::get_registration_elements] - aa_false "Registration elements do contain username" [expr [lsearch [concat $elms(required) $elms(optional)] "username"] == -1] + aa_false "Registration elements do contain username" [expr {"username" ni [concat $elms(required) $elms(optional)]}] parameter::set_value -parameter UseEmailForLoginP -package_id [ad_acs_kernel_id] -value {} aa_true "Param UseEmailForLoginP {} -> true" [auth::UseEmailForLoginP] @@ -696,7 +696,7 @@ # GetElements array set elms [auth::get_registration_elements] - aa_true "Registration elements do NOT contain username" [expr {[lsearch [concat $elms(required) $elms(optional)] "username"] == -1}] + aa_true "Registration elements do NOT contain username" [expr {"username" ni [concat $elms(required) $elms(optional)]}] # Create a user with no username set email [string tolower "[ad_generate_random_string]@foobar.com"]