|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 2123 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 2123.
Report 2123 Actions
Problem Report Number 2123 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.1088 Raised 2000-11-17 08:00 Updated 2003-03-13 08:00 Published 2001-01-25 08:00 Product Standard Internationalised System Calls and Libraries Extended V2 (UNIX 98) Certification Program The Open Brand certification program Test Suite VSTH version 5.2.1 Test Identification PTHR.os/thread/pthread_self 2 Problem Summary TSD5TH.00081 The test claims that pthread_self() does not return EINTR using this code: int t2_tfunc() { int rval; pthread_t val; rval = 1; val = pthread_self(); if ( (int) val != EINTR ) rval = 0; return(rval); H... Problem Text
The test claims that pthread_self() does not return EINTR using
this code:
int
t2_tfunc()
{
int rval;
pthread_t val;
rval = 1;
val = pthread_self();
if ( (int) val != EINTR )
rval = 0;
return(rval);
However, a pthread_t is implemented as an integer (1,2,3,...) and errno
values are also integers and the test cannot distinguish a thread ID of
4 from EINTR, which is defined to be 4. The test function just
happened to be executed by the fourth thread.Test Output
************************************************************************
/tset/PTHR.os/thread/pthread_self/T.pthread_self 2 Failed
Test Information:
A call to pthread_self() shall not return EINTR.
Posix Ref: Component PTHREAD_SELF
Assertion 9945-1:1996 2.4-2(A)
test function, expected 0, got 1
Thread 2 exitval, expected 0, got 2
Thread 1 delivered 1 SIGTERM signals
Thread 2 caught 1 SIGTERM signals
************************************************************************Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
A test suite deficiency is recommended.
Assertion 2 specifies that the return value of pthread_self whould not be the errno
EINTR. The return value for pthread_self is actually the pthread_id not an errno.
This assertion is therefore invalid
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Test Suite Deficiency (TSD) Review Conclusion
This is an agreed Test Suite Deficiency.
Problem Reporting System Options:
- View Report 2123
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority