From: Paul L. <pl...@us...> - 2004-09-21 21:22:44
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/fchown In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28722/fchown Modified Files: fchown04.c Log Message: Small fix to chown03 and fchown04. tst_tmpdir() call was happening in a spot that would cause it to break under certain automation environments. Index: fchown04.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/fchown/fchown04.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** fchown04.c 10 Oct 2003 18:28:44 -0000 1.9 --- fchown04.c 21 Sep 2004 21:22:35 -0000 1.10 *************** *** 223,226 **** --- 223,232 ---- tst_sig(FORK, DEF_HANDLER, cleanup); + /* Pause if that option was specified */ + TEST_PAUSE; + + /* Make a temp dir and cd to it */ + tst_tmpdir(); + /* Get the current working directory of the process */ if (getcwd(test_home, sizeof(test_home)) == NULL) { *************** *** 246,255 **** } - /* Pause if that option was specified */ - TEST_PAUSE; - - /* Make a temp dir and cd to it */ - tst_tmpdir(); - /* call individual setup functions */ --- 252,255 ---- |