2 # @(#) Test initgroups function
8 if { [util_start "id -u"] != 0 } {
9 set test_desc "must be userid 0 to run"
15 # Compile test program
17 simple_compile "initgroups"
21 set user_list [split [util_start "bin/wbinfo" "-u"] "\n"]
25 foreach { user } $user_list {
26 set output [util_start "$srcdir/$subdir/initgroups" "\"$user\"" ""]
30 set test_desc "initgroups $user"
32 if { [regexp "PASS" $output] } {