s3:modules: s/struct timed_event/struct tevent_timer
[Samba/gebeck_regimport.git] / testsuite / nsswitch / getpwnam.exp
blob5f6b2343392477e3f4c25741b4c6535704ea1d36
2 # @(#) Test domain users resolve using getpwnam()
5 load_lib util-defs.exp
6 load_lib "compile.exp"
8 # Compile getpwnam.c
10 simple_compile "getpwnam"
12 # Test domain users
14 set user_list [split [util_start "bin/wbinfo" "-u"] "\n"]
16 verbose $user_list
18 foreach { user } $user_list {
19 set output [util_start "$srcdir/$subdir/getpwnam" "\"$user\"" ""]
21 verbose $output
23 if {[regexp "PASS:" $output]} {
24 pass "getpwnam $user"
25 } else {
26 fail "getpwnam $user"