Fix extended operation return path.
[Samba/ekacnet.git] / testsuite / nsswitch / longarg.exp
blobe1d0eda9ccb200598c308e2db1c369b197fad3d3
2 # @(#) Test handling of long arguments passed to various nss functions
5 load_lib compile.exp
6 load_lib util-defs.exp
8 # Run tests from C source files
10 set longarg_tests [list \
11 { "long arg to getpwnam()" "longarg_getpwnam" } \
12 { "long arg to getgrnam()" "longarg_getgrnam" } \
15 foreach { test } $longarg_tests {
16 set test_desc [lindex $test 0]
17 set test_file [lindex $test 1]
19 simple_make "longarg" $test_file
20 set output [util_start "$srcdir/$subdir/$test_file" ]
22 if { [regexp "PASS" $output] } {
23 pass $test_desc
24 file delete "$srcdir/$subdir/$test_file" "$srcdir/$subdir/$test_file.o"
25 } else {
26 fail $test_desc
27 puts $output