HomeAbout Us A-Z IndexSearch * Contact Us Register LoginPress Shop

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 2318 Details

Help Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges

This page provides all information on Problem Report 2318.


Report 2318 Actions


    Problem Report Number 2318
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.1190
    Raised 2004-01-27 23:05
    Updated 2004-01-29 21:21
    Published 2004-01-29 21:21
    Product Standard Internationalised System Calls and Libraries Extended V3 (UNIX 03)
    Certification Program The Open Brand certification program
    Test Suite VSRTE version 1.1.3
    Test Identification POSIX_rte.os/timers/clock_gettime 1-4
    Specification Base Definitions Issue 6
    Location in Spec none
    Problem Summary process clock not incremented while process is sleeping
    Problem Text in clock_gettime.c, test1:


    if ((rval = clock_gettime(clock_id, &tp)) != 0)
    {
    vrtx_reterrno_resmsg(FAILURE,
    "clock_gettime(getcpuclockid) failed", rval, errno);
    DBUG_VOID_RETURN
    }
    saved_time = tp.tv_sec;
    sleep(2);
    if ((rval = clock_gettime(clock_id, &tp)) != 0)
    {
    vrtx_reterrno_resmsg(FAILURE,
    "clock_gettime(getcpuclockid) failed", rval, errno);
    DBUG_VOID_RETURN
    }

    if (saved_time >= tp.tv_sec)
    {
    vrtx_resmsg(FAILURE, "Invalid time returned by
    clock_gettime."
    " Returned %d, saved_time %d", tp.tv_sec,
    saved_time);
    DBUG_VOID_RETURN
    }

    Sleep is used here to cause time to accumulate, but while the process is
    sleeping no cpu time is being used. Test needs to be changed to do some
    real work .i.e multication loop ... etc. Test 2-4 have similar code.
    Test Output
    ************************************************************************
    /tset/POSIX_rte.os/timers/clock_gettime/T.clock_gettime 1
    Failed

    Test Description:
    If both {_POSIX_TIMERS} and {_POSIX_CPUTIME} are
    defined:
    When clock_id is the value obtained by invoking
    clock_getcpuclockid(), then clock_gettime(clock_id,
    tp) stores the current value of the specified
    process's CPU-time clock in the structure pointed
    to by tp and returns zero.
    Error: requested file not found in archive
    /tsuites/VSRTE/vsrte/MAN/tset
    /POSIX_rte.os/timers/clock_gettime/L.clock_gettime_t

    Test Strategy:
    Error: requested file not found in archive
    /tsuites/VSRTE/vsrte/MAN/tset
    /POSIX_rte.os/timers/clock_gettime/L.clock_gettime_s

    Test Information:
    Invalid time returned by clock_gettime. Returned 0, saved_time 0


    ************************************************************************

    ************************************************************************
    /tset/POSIX_rte.os/timers/clock_gettime/T.clock_gettime 2
    Failed

    Test Description:
    If both {_POSIX_TIMERS} and {_POSIX_CPUTIME} are
    defined:
    When clock_id is CLOCK_PROCESS_CPUTIME_ID, then
    clock_gettime(clock_id, tp) stores the current
    value of the calling process's CPU-time clock in
    the structure pointed to by tp and returns zero.
    Error: requested file not found in archive
    /tsuites/VSRTE/vsrte/MAN/tset
    /POSIX_rte.os/timers/clock_gettime/L.clock_gettime_t

    Test Strategy:
    Error: requested file not found in archive
    /tsuites/VSRTE/vsrte/MAN/tset
    /POSIX_rte.os/timers/clock_gettime/L.clock_gettime_s

    Test Information:
    Invalid time returned by clock_gettime. Returned 0, saved_time 0


    ************************************************************************

    Review Information

    Review Type TSMA Review
    Start Date 2004-01-27 23:05
    Last Updated 2004-01-29 20:23
    Completed 2004-01-29 20:23
    Status Complete
    Review Recommendation Test Suite Deficiency (TSD)
    Review Response This is accepted as a Test Suite Defiency and it is recommended that a
    waiver is granted.

    Review Type SA Review
    Start Date 2004-01-29 20:23
    Last Updated 2004-01-29 21:21
    Completed 2004-01-29 21:21
    Status Complete
    Review Resolution Test Suite Deficiency (TSD)
    Review Conclusion A test suite deficiency is granted

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority