2 # @(#) Test multiple threads can enumerate groups correctly
6 load_lib "$srcdir/config/env.exp"
7 load_lib "$srcdir/config/default-nt-names.exp"
11 set output [target_compile "$srcdir/$subdir/getgrent_r.c" \
12 "$srcdir/$subdir/getgrent_r" executable {additional_flags="-g"}]
15 perror "compile getgrent_r"
20 # Clean up output from previous tests
23 file delete [glob -nocomplain "/tmp/getgrent_r-$pid.out-*"]
27 set output [util_start "$srcdir/$subdir/getgrent_r" "$pid" ""]
28 if {![regexp "^PASS:" $output]} {
29 perror "run getgrent_r"
34 # Sort and compare output
36 set output [util_start "$srcdir/$subdir/getent_r.sh" "getgrent $pid" ""]