Hi! > > We should probably wrap the su into a script that makes sure that the > > return value is compatible with LTP. Because it may set bogus test > > return status if su reported anything else than 0 or 1. > > Ehm, but -c "$0" will execute the same script which, in turn, will exit > using tst_exit.
Yep, but the su man page specifies return values: 128 + signal_nr - command terminated by signal 127 - command cannot be executed (this one is actually handled in test.sh) 126 - command not found 255 - su was asked to terminate and had to kill the program And if none of the abowe happens it retuns the return value from the script. So if the script gets killed by signal of failed to executed (or cannot be found in $PATH) the return value will be wrong. -- Cyril Hrubis chru...@suse.cz ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list