2 # @(#) Test multiple threads can enumerate users correctly
6 load_lib "$srcdir/lib/nsswitch-config.exp"
10 set output [target_compile "$srcdir/$subdir/getpwent_r.c" \
11 "$srcdir/$subdir/getpwent_r" executable {additional_flags="-g"}]
14 perror "compile getpwent_r"
19 # Clean up output from previous tests
22 file delete [glob -nocomplain "/tmp/getpwent_r-$pid.out-*"]
26 set output [util_start "$srcdir/$subdir/getpwent_r" "$pid" ""]
27 if {![regexp "^PASS:" $output]} {
28 perror "run getpwent_r"
33 # Sort and compare output
35 set output [util_start "$srcdir/$subdir/getent_r.sh" "getpwent $pid" ""]