|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 2555 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 2555.
Report 2555 Actions
Problem Report Number 2555 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.1324 Raised 2011-03-04 02:10 Updated 2011-03-08 12:12 Published 2011-03-08 12:12 Product Standard Internationalised System Calls and Libraries Extended V3 (UNIX 03) Certification Program The Open Brand certification program Test Suite VSRT version 5.4.3 Test Identification POSIX_rte.os/procprim/posix_spawnp/T.posix_spawnp{54} Specification Base Definitions Issue 6 Location in Spec n/a Problem Summary POSIX_rte.os/procprim/posix_spawnp/T.posix_spawnp{54} failure due
to no file created.Problem Text This test aims to check the condition of creating a file open action for
a file in a different directory ("test54/test54_fd1"), where the first
part of the path ("test54") points to a file instead of directory. In
this case posix_spawnp() should return ENOTDIR (or 0, and the child
returns 127).
However, when we execute the call to posix_spawn() in this testcase, no
file "test54" has been created (there is no code to create the file in
the test case), and so instead posix_spawn() returns EBADF (as seen in
the journal file quoted in the comments).
As it happens, this test passes on Solaris 10, because on S10 all errors
are indicated by the child returning 127, so actually it is passing for
the wrong reason (see Oracle bug 6488832, which changed this behaviour
in NV).
Adding a 'create("test54",0666) or similar before the call to
posix_spawn, causes this test to pass on NV:
--------------------------------------
$ uname -a
SunOS xxxxx 5.11 snv_156 sun4v sparc SUNW,T5240
$ diff -u posix_spawnp.c.orig posix_spawnp.c
--- posix_spawnp.c.orig Fri Jan 21 09:05:59 2011
+++ posix_spawnp.c Thu Mar 3 07:11:58 2011
@@ -6825,9 +6825,11 @@
}
cpid = 1;
+ creat("test54", "0666");
rtnval = posix_spawnp(&cpid, (void *)execpath(file),
&file_actions, &attr, argv, envp);
waitpid(cpid, &child, 0);
close(fd1);
+ unlink("test54");
if ((rtnval == 0
&& WEXITSTATUS(child) == 127)
|| rtnval == ENOTDIR)
Test Output Log:
Failure:
========
...
400|0 54 1 07:00:28|IC Start
200|0 54 07:00:28|TP Start
520|0 54 00016056 1 1|posix_spawnp returned 2 err 9 EBADF and child return 0
220|0 54 1 07:00:28|FAIL
410|0 54 1 07:00:28|IC End
...
After adding create() to the test
...
15|0 3.6-lite 1|TCM Start
400|0 54 1 07:13:31|IC Start
200|0 54 07:13:31|TP Start
220|0 54 0 07:13:31|PASS
410|0 54 1 07:13:31|IC End
...Review Information
Review Type TSMA Review Start Date 2011-03-04 02:10 Last Updated 2011-03-04 09:38 Completed 2011-03-04 09:38 Status Complete Review Recommendation Test Suite Deficiency (TSD) Review Response This is accepted as a fault in the test suite.
Review Type SA Review Start Date 2011-03-04 17:38 Last Updated 2011-03-07 15:18 Completed 2011-03-07 15:18 Status Complete Review Resolution Test Suite Deficiency (TSD) Review Conclusion A test suite deficiency is granted.
Problem Reporting System Options:
- View Report 2555
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority