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

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 1336 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 1336.


Report 1336 Actions


    Problem Report Number 1336
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0618
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1997-09-11 08:00
    Product Standard Internationalised System Calls and Libraries Extended (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSU version 4.1.1
    Test Identification CAPIbase/ftruncate 1
    Problem Summary TSD4U.00199 This test may fail on implementations where the size of the size_t type and off_t types are different.
    Problem Text
    In the source file CAPI/tset/CAPIbase/fftruncate/dftruncate1.c
    the array defined as...

    static off_t size[] = {
    1467, 1854, 7652, 7719, 5715, 4072, 3635, 1158, 2304, 1525, 7861, 1074,
    5459, 2552, 653, 4169, 4301, 6877, 3248, 659, 5020, 6613, 5360, 5349,
    4541, 495, 7933, 3505, 8083, 7783, 4695, 717, 2290, 6815, 549, 1379,
    4498, 5830, 5134, 6680, 1528, 7226, 1263, 4184, 5067, 7312, 6800, 7136,
    4254, 5708, 319, 877, 1574, 2640, 1125, 1954, 2781, 7415, 252, 5398,
    7714, 3550, 262, 1182, 3765, 349, 7911, 7352, 694, 1721, 8121, 5942,
    2058, 5623, 901, 7691, 1072, 4206, 6774, 593, 2698, 7932, 7671, 122,
    4115, 6388, 7361, 5303, 904, 3771, 6365, 4741, 781, 1679, 628, 2017,
    3584, 2872, 6427, 2685, 0, 8192,
    };

    contains 102 elements. The following line defining NUM_SIZES calculates
    differently for 32 and 64 bit machines.

    #define NUM_SIZES (sizeof(size)/sizeof(size_t))

    On a 32 bit machine, both the sizeof(off_t) and sizeof(size_t) are the same (4)
    producing a result of 102 elements.
    On a 64 bit machine, the sizeof(off_t) is 8 causing the number of elements to be
    204. This causes the test CAPI/tset/CAPIbase/fftruncate/fftruncate1.c to walk
    of the end of the size[] array.

    The #define NUM_SIZES statement should be

    #define NUM_SIZES (sizeof(size)/sizeof(off_t))

    to produce correct results for all machines.
    Test Output
    TEST CASE: ftruncate

    TEST PURPOSE #1
    A successful call to int ftruncate(int fildes, off_t
    length) shall cause the regular file referred to by
    fildes to have a size of length bytes and return 0.
    PREP: Set to catch the SIGXFSZ signal
    PREP: Create test file
    TEST: ftruncate(..., 1467) returns 0
    PREP: Stat file
    TEST: File size equal to 1467
    TEST: ftruncate(..., 1854) returns 0
    PREP: Stat file
    TEST: File size equal to 1854
    TEST: ftruncate(..., 7652) returns 0
    PREP: Stat file
    TEST: File size equal to 7652
    TEST: ftruncate(..., 7719) returns 0
    PREP: Stat file
    TEST: File size equal to 7719
    TEST: ftruncate(..., 5715) returns 0
    PREP: Stat file
    TEST: File size equal to 5715
    TEST: ftruncate(..., 4072) returns 0
    PREP: Stat file
    TEST: File size equal to 4072
    TEST: ftruncate(..., 3635) returns 0
    PREP: Stat file
    TEST: File size equal to 3635
    TEST: ftruncate(..., 1158) returns 0
    PREP: Stat file
    TEST: File size equal to 1158
    TEST: ftruncate(..., 2304) returns 0
    PREP: Stat file
    TEST: File size equal to 2304
    TEST: ftruncate(..., 1525) returns 0
    PREP: Stat file
    TEST: File size equal to 1525
    TEST: ftruncate(..., 7861) returns 0
    PREP: Stat file
    TEST: File size equal to 7861
    TEST: ftruncate(..., 1074) returns 0
    PREP: Stat file
    TEST: File size equal to 1074
    TEST: ftruncate(..., 5459) returns 0
    PREP: Stat file
    TEST: File size equal to 5459
    TEST: ftruncate(..., 2552) returns 0
    PREP: Stat file
    TEST: File size equal to 2552
    TEST: ftruncate(..., 653) returns 0
    PREP: Stat file
    TEST: File size equal to 653
    TEST: ftruncate(..., 4169) returns 0
    PREP: Stat file
    TEST: File size equal to 4169
    TEST: ftruncate(..., 4301) returns 0
    PREP: Stat file
    TEST: File size equal to 4301
    TEST: ftruncate(..., 6877) returns 0
    PREP: Stat file
    TEST: File size equal to 6877
    TEST: ftruncate(..., 3248) returns 0
    PREP: Stat file
    TEST: File size equal to 3248
    TEST: ftruncate(..., 659) returns 0
    PREP: Stat file
    TEST: File size equal to 659
    TEST: ftruncate(..., 5020) returns 0
    PREP: Stat file
    TEST: File size equal to 5020
    TEST: ftruncate(..., 6613) returns 0
    PREP: Stat file
    TEST: File size equal to 6613
    TEST: ftruncate(..., 5360) returns 0
    PREP: Stat file
    TEST: File size equal to 5360
    TEST: ftruncate(..., 5349) returns 0
    PREP: Stat file
    TEST: File size equal to 5349
    TEST: ftruncate(..., 4541) returns 0
    PREP: Stat file
    TEST: File size equal to 4541
    TEST: ftruncate(..., 495) returns 0
    PREP: Stat file
    TEST: File size equal to 495
    TEST: ftruncate(..., 7933) returns 0
    PREP: Stat file
    TEST: File size equal to 7933
    TEST: ftruncate(..., 3505) returns 0
    PREP: Stat file
    TEST: File size equal to 3505
    TEST: ftruncate(..., 8083) returns 0
    PREP: Stat file
    TEST: File size equal to 8083
    TEST: ftruncate(..., 7783) returns 0
    PREP: Stat file
    TEST: File size equal to 7783
    TEST: ftruncate(..., 4695) returns 0
    PREP: Stat file
    TEST: File size equal to 4695
    TEST: ftruncate(..., 717) returns 0
    PREP: Stat file
    TEST: File size equal to 717
    TEST: ftruncate(..., 2290) returns 0
    PREP: Stat file
    TEST: File size equal to 2290
    TEST: ftruncate(..., 6815) returns 0
    PREP: Stat file
    TEST: File size equal to 6815
    TEST: ftruncate(..., 549) returns 0
    PREP: Stat file
    TEST: File size equal to 549
    TEST: ftruncate(..., 1379) returns 0
    PREP: Stat file
    TEST: File size equal to 1379
    TEST: ftruncate(..., 4498) returns 0
    PREP: Stat file
    TEST: File size equal to 4498
    TEST: ftruncate(..., 5830) returns 0
    PREP: Stat file
    TEST: File size equal to 5830
    TEST: ftruncate(..., 5134) returns 0
    PREP: Stat file
    TEST: File size equal to 5134
    TEST: ftruncate(..., 6680) returns 0
    PREP: Stat file
    TEST: File size equal to 6680
    TEST: ftruncate(..., 1528) returns 0
    PREP: Stat file
    TEST: File size equal to 1528
    TEST: ftruncate(..., 7226) returns 0
    PREP: Stat file
    TEST: File size equal to 7226
    TEST: ftruncate(..., 1263) returns 0
    PREP: Stat file
    TEST: File size equal to 1263
    TEST: ftruncate(..., 4184) returns 0
    PREP: Stat file
    TEST: File size equal to 4184
    TEST: ftruncate(..., 5067) returns 0
    PREP: Stat file
    TEST: File size equal to 5067
    TEST: ftruncate(..., 7312) returns 0
    PREP: Stat file
    TEST: File size equal to 7312
    TEST: ftruncate(..., 6800) returns 0
    PREP: Stat file
    TEST: File size equal to 6800
    TEST: ftruncate(..., 7136) returns 0
    PREP: Stat file
    TEST: File size equal to 7136
    TEST: ftruncate(..., 4254) returns 0
    PREP: Stat file
    TEST: File size equal to 4254
    TEST: ftruncate(..., 5708) returns 0
    PREP: Stat file
    TEST: File size equal to 5708
    TEST: ftruncate(..., 319) returns 0
    PREP: Stat file
    TEST: File size equal to 319
    TEST: ftruncate(..., 877) returns 0
    PREP: Stat file
    TEST: File size equal to 877
    TEST: ftruncate(..., 1574) returns 0
    PREP: Stat file
    TEST: File size equal to 1574
    TEST: ftruncate(..., 2640) returns 0
    PREP: Stat file
    TEST: File size equal to 2640
    TEST: ftruncate(..., 1125) returns 0
    PREP: Stat file
    TEST: File size equal to 1125
    TEST: ftruncate(..., 1954) returns 0
    PREP: Stat file
    TEST: File size equal to 1954
    TEST: ftruncate(..., 2781) returns 0
    PREP: Stat file
    TEST: File size equal to 2781
    TEST: ftruncate(..., 7415) returns 0
    PREP: Stat file
    TEST: File size equal to 7415
    TEST: ftruncate(..., 252) returns 0
    PREP: Stat file
    TEST: File size equal to 252
    TEST: ftruncate(..., 5398) returns 0
    PREP: Stat file
    TEST: File size equal to 5398
    TEST: ftruncate(..., 7714) returns 0
    PREP: Stat file
    TEST: File size equal to 7714
    TEST: ftruncate(..., 3550) returns 0
    PREP: Stat file
    TEST: File size equal to 3550
    TEST: ftruncate(..., 262) returns 0
    PREP: Stat file
    TEST: File size equal to 262
    TEST: ftruncate(..., 1182) returns 0
    PREP: Stat file
    TEST: File size equal to 1182
    TEST: ftruncate(..., 3765) returns 0
    PREP: Stat file
    TEST: File size equal to 3765
    TEST: ftruncate(..., 349) returns 0
    PREP: Stat file
    TEST: File size equal to 349
    TEST: ftruncate(..., 7911) returns 0
    PREP: Stat file
    TEST: File size equal to 7911
    TEST: ftruncate(..., 7352) returns 0
    PREP: Stat file
    TEST: File size equal to 7352
    TEST: ftruncate(..., 694) returns 0
    PREP: Stat file
    TEST: File size equal to 694
    TEST: ftruncate(..., 1721) returns 0
    PREP: Stat file
    TEST: File size equal to 1721
    TEST: ftruncate(..., 8121) returns 0
    PREP: Stat file
    TEST: File size equal to 8121
    TEST: ftruncate(..., 5942) returns 0
    PREP: Stat file
    TEST: File size equal to 5942
    TEST: ftruncate(..., 2058) returns 0
    PREP: Stat file
    TEST: File size equal to 2058
    TEST: ftruncate(..., 5623) returns 0
    PREP: Stat file
    TEST: File size equal to 5623
    TEST: ftruncate(..., 901) returns 0
    PREP: Stat file
    TEST: File size equal to 901
    TEST: ftruncate(..., 7691) returns 0
    PREP: Stat file
    TEST: File size equal to 7691
    TEST: ftruncate(..., 1072) returns 0
    PREP: Stat file
    TEST: File size equal to 1072
    TEST: ftruncate(..., 4206) returns 0
    PREP: Stat file
    TEST: File size equal to 4206
    TEST: ftruncate(..., 6774) returns 0
    PREP: Stat file
    TEST: File size equal to 6774
    TEST: ftruncate(..., 593) returns 0
    PREP: Stat file
    TEST: File size equal to 593
    TEST: ftruncate(..., 2698) returns 0
    PREP: Stat file
    TEST: File size equal to 2698
    TEST: ftruncate(..., 7932) returns 0
    PREP: Stat file
    TEST: File size equal to 7932
    TEST: ftruncate(..., 7671) returns 0
    PREP: Stat file
    TEST: File size equal to 7671
    TEST: ftruncate(..., 122) returns 0
    PREP: Stat file
    TEST: File size equal to 122
    TEST: ftruncate(..., 4115) returns 0
    PREP: Stat file
    TEST: File size equal to 4115
    TEST: ftruncate(..., 6388) returns 0
    PREP: Stat file
    TEST: File size equal to 6388
    TEST: ftruncate(..., 7361) returns 0
    PREP: Stat file
    TEST: File size equal to 7361
    TEST: ftruncate(..., 5303) returns 0
    PREP: Stat file
    TEST: File size equal to 5303
    TEST: ftruncate(..., 904) returns 0
    PREP: Stat file
    TEST: File size equal to 904
    TEST: ftruncate(..., 3771) returns 0
    PREP: Stat file
    TEST: File size equal to 3771
    TEST: ftruncate(..., 6365) returns 0
    PREP: Stat file
    TEST: File size equal to 6365
    TEST: ftruncate(..., 4741) returns 0
    PREP: Stat file
    TEST: File size equal to 4741
    TEST: ftruncate(..., 781) returns 0
    PREP: Stat file
    TEST: File size equal to 781
    TEST: ftruncate(..., 1679) returns 0
    PREP: Stat file
    TEST: File size equal to 1679
    TEST: ftruncate(..., 628) returns 0
    PREP: Stat file
    TEST: File size equal to 628
    TEST: ftruncate(..., 2017) returns 0
    PREP: Stat file
    TEST: File size equal to 2017
    TEST: ftruncate(..., 3584) returns 0
    PREP: Stat file
    TEST: File size equal to 3584
    TEST: ftruncate(..., 2872) returns 0
    PREP: Stat file
    TEST: File size equal to 2872
    TEST: ftruncate(..., 6427) returns 0
    PREP: Stat file
    TEST: File size equal to 6427
    TEST: ftruncate(..., 2685) returns 0
    PREP: Stat file
    TEST: File size equal to 2685
    TEST: ftruncate(..., 0) returns 0
    PREP: Stat file
    TEST: File size equal to 0
    TEST: ftruncate(..., 8192) returns 0
    PREP: Stat file
    TEST: File size equal to 8192
    TEST: ftruncate(..., 0) returns 0
    ERROR: ftruncate failed, errno = 27(EFBIG - File too large)
    1 FAIL

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    We agree this is a test suite deficiency in the test
    suite version(s) listed.

    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:

     

    Back   


Contact the Certification Authority