fcntl14 cause msh relaunch in uClinux platform.

--
fcntl14     0  INFO  :  Enter block 1: without mandatory locking


BusyBox v1.13.4 (2009-06-04 17:49:13 CST) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/> fcntl14     1  PASS  :  testcase:1 PASSED
fcntl14     2  PASS  :  testcase:2 PASSED
fcntl14     3  PASS  :  testcase:3 PASSED
fcntl14     4  PASS  :  testcase:4 PASSED
fcntl14     5  PASS  :  testcase:5 PASSED
fcntl14     6  PASS  :  testcase:6 PASSED
fcntl14     7  PASS  :  testcase:7 PASSED
--


Fix by delivering parent as one parameter of child process:
--
Index: testcases/kernel/syscalls/fcntl/fcntl14.c
===================================================================
--- testcases/kernel/syscalls/fcntl/fcntl14.c
+++ testcases/kernel/syscalls/fcntl/fcntl14.c
@@ -763,7 +763,7 @@
                        break;
                case 0: /* child */
 #ifdef UCLINUX
-                       if (self_exec(argv0, "n", 1) < 0) {
+                       if (self_exec(argv0, "nd", 1, parent) < 0) {
                                tst_resm(TFAIL, "self_exec failed");
                                break;
                        }
@@ -980,7 +980,7 @@
 #ifdef UCLINUX
        argv0 = av[0];

-       maybe_run_child(&do_usleep_child, "n", 1);
+       maybe_run_child(&do_usleep_child, "nd", 1, &parent);
        thiscase = malloc(sizeof(testcase));

        maybe_run_child(&dochild, "nddddddddd", 2, &thiscase->c_type,
--



Best regards,
Vivi Li
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to