s3:cli_netlogon: keep the the correct negotiate_flags on the cli->dc structure
[Samba.git] / testsuite / nsswitch / getpwent_r.exp
blob95c155d78cc26f502ee5a19edd1334ade40f3d7b
2 # @(#) Test multiple threads can enumerate users correctly
5 load_lib util-defs.exp
6 load_lib "$srcdir/lib/nsswitch-config.exp"
8 # Compile getpwent_r.c
10 set output [target_compile "$srcdir/$subdir/getpwent_r.c" \
11 "$srcdir/$subdir/getpwent_r" executable {additional_flags="-g"}]
13 if {$output != ""} {
14 perror "compile getpwent_r"
15 puts $output
16 fail ""
19 # Clean up output from previous tests
21 set pid [pid]
22 file delete [glob -nocomplain "/tmp/getpwent_r-$pid.out-*"]
24 # Run test proggy
26 set output [util_start "$srcdir/$subdir/getpwent_r" "$pid" ""]
27 if {![regexp "^PASS:" $output]} {
28 perror "run getpwent_r"
29 puts $output
30 return -1
33 # Sort and compare output
35 set output [util_start "$srcdir/$subdir/getent_r.sh" "getpwent $pid" ""]
36 if {$output == ""} {
37 pass "getpwent_r"
38 } else {
39 fail "getpwent_r"
40 puts $output