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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 2742 Actions


    Problem Report Number 2742
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.1432
    Raised 2022-07-25 17:13
    Updated 2022-07-25 09:43
    Published 2022-07-25 09:43
    Product Standard Commands and Utilities V2 (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSC version 5.3.21
    Test Identification /tset/POSIX.upe/ex/ex_01.ex{50,51,52}
    Specification Commands and Utilities Issue 4 Version 2
    Location in Spec Page 299
    Problem Summary ex_01.ex 50-52 fail because RE is too long
    Problem Text ########################################################################
    ###
    #
    # Strategy:
    #
    # Use the CheckNonEnglishCollate function with a command which removes
    # all characters that are in the same equivalence class as an alphabetic
    # character from the portable character set.
    # Use the CheckNonEnglishCtype function with a command which removes
    # all alphabetic characters.
    # (The LC_MESSAGES locale category is untestable.)
    #
    ########################################################################
    ###

    ...
    ...


    # Test setting LC_COLLATE category using LANG env var
    testfunc50_1() {
    cat > ex_in_50_1 || return
    ex -s ex_in_50_1 <<- '!' > /dev/null || return
    1,$s/[[=a=][=A=][=b=][=B=][=c=][=C=][=d=][=D=][=e=][=E=][=f=]
    [=F=][=g=][=G=][=h=][=H=][=i=][=I=][=j=][=J=][=k=][=K=]
    [=l=][=L=][=m=][=M=][=n=][=N=][=o=][=O=][=p=][=P=][=q=][=Q=][=r=][=R=]
    [=s=][=S=][=t=][=T=][=u=][=U=][=v=][=V=][=w=][=W=][=x=
    ][=X=][=y=][=Y=][=z=][=Z=]]//g
    w
    q
    !
    ...
    ...
    The failing reason is the regular expression which located on 62-65
    lines on ex_01.sh file. This regular expression is too long. On the our
    system, the maximum length for regular expression is 256 while the open
    source system is 512. Our system design the 256 maximum length for
    multiple reasons so I am not recommend to change it. For this open
    source test case(ex_01.sh), it is used for testing ex instead of testing
    regular expression. Therefore, I recommend you to change the regular
    expression into [a-z=A-Z], which can not only have the same testing
    logic, but also solve this maximum length error.
    Test Output 400|127 50 1 01:33:43|IC Start

    200|127 46 01:33:43|TP Start

    520|127 46 67174798 1 1|Assertion #50 (C): LANG determines default
    locale

    520|127 46 67174798 4 1|Expected exit code = 0; Received 2

    520|127 46 67174798 4 2|Standard error isn't empty

    520|127 46 67174798 4 3|Contents of out.stderr:

    520|127 46 16843634 1 1|command failed with LANG=POSIX: testfunc50_1

    520|127 46 16843634 1 2|output written to standard error...

    220|127 46 1 01:33:44|FAIL

    410|127 50 1 01:33:44|IC End

    400|127 51 1 01:33:44|IC Start

    200|127 47 01:33:44|TP Start

    520|127 47 67174798 1 1|Assertion #51 (C): LC_ALL overrides all other
    i18n variables

    520|127 47 67174798 4 1|Expected exit code = 0; Received 2

    520|127 47 67174798 4 2|Standard error isn't empty

    520|127 47 67174798 4 3|Contents of out.stderr:

    520|127 47 16843556 1 1|command failed with LANG=POSIX: testfunc51_1

    520|127 47 16843556 1 2|output written to standard error...

    220|127 47 1 01:33:44|FAIL

    410|127 51 1 01:33:44|IC End

    400|127 52 1 01:33:44|IC Start

    200|127 48 01:33:44|TP Start

    520|127 48 67174798 1 1|Assertion #52 (C): LC_COLLATE determines the
    locale for the behaviour of equivalence classes within

    regular expressions

    520|127 48 67174798 4 1|Expected exit code = 0; Received 2

    520|127 48 67174798 4 2|Standard error isn't empty

    520|127 48 67174798 4 3|Contents of out.stderr:

    520|127 48 16843594 1 1|command failed with LANG=POSIX: testfunc52_1

    520|127 48 16843594 1 2|output written to standard error...

    220|127 48 1 01:33:44|FAIL

    410|127 52 1 01:33:44|IC End

    Review Information

    Review Type TSMA Review
    Start Date 2022-07-25 17:13
    Last Updated 2022-07-25 09:35
    Completed 2022-07-25 09:35
    Status Complete
    Review Recommendation Test Suite Deficiency (TSD)
    Review Response This is accepted as a fault in the test suite.

    Note that the submitter's suggestion of using [a-z=A-Z] in place of the
    current RE that contains 52 equivalence classes is not a valid fix. The
    test suite will be changed in the next release to use six separate
    commands:

    g/[[=a=][=A=][=b=][=B=][=c=][=C=][=d=][=D=][=e=][=E=]]/s///g
    g/[[=f=][=F=][=g=][=G=][=h=][=H=][=i=][=I=][=j=][=J=]]/s///g
    g/[[=k=][=K=][=l=][=L=][=m=][=M=][=n=][=N=][=o=][=O=]]/s///g
    g/[[=p=][=P=][=q=][=Q=][=r=][=R=][=s=][=S=][=t=][=T=]]/s///g
    g/[[=u=][=U=][=v=][=V=][=w=][=W=][=x=][=X=][=y=][=Y=]]/s///g
    g/[[=z=][=Z=]]/s///g

    Review Type SA Review
    Start Date 2022-07-25 17:35
    Last Updated 2022-07-25 09:36
    Completed 2022-07-25 09:36
    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