*Synopsis*: VSC 5.2.13 POSIX.cmd/cmp tests fail on OpenSolaris (snv_127)

CR 6904808 changed on Feb 7 2010 by <User 1-5Q-13979>

=== Field ============ === New Value ============= === Old Value =============

Category               shell                       utility                    
SubCategory            korn93                      text                       
====================== =========================== ===========================

     
*Change Request ID*: 6904808

*Synopsis*: VSC 5.2.13 POSIX.cmd/cmp tests fail on OpenSolaris (snv_127)

  Product: solaris
  Category: shell
  Subcategory: korn93
  Type: Defect
  Subtype: Functionality
  Status: 1-Dispatched
  Substatus: 
  Priority: 4-Low
  Introduced In Release: 
  Introduced In Build: 
  Responsible Engineer: 
  Keywords: OpenSolaris, VSC, cmp, stdsosol0906

=== *Description* ============================================================
Running VSC 5.2.13 on OpenSolaris based on snv_127 showed some failures for 
/POSIX.cmd/cmp tests assertions 14, 15 and 18. The error message written to the 
journal file is identical for all 3 assertions. An example is shown below:

520|70 15 25221 1 1|Assertion #15 (A): Verify output of ga66.
520|70 15 25221 2 1|Expected exit code = 0; Received 1
220|70 15 1 22:41:36|FAIL
410|70 15 1 22:41:36|IC End

*** (#1 of 1): 2009-11-25 15:30:52 GMT+00:00 <User 1-5Q-6084>


=== *Public Comments* ========================================================
Comments from OpenSolaris ksh93 project lead Roland Mainz (<email address 
omitted>):
> 520|70 15 25221 1 1|Assertion #15 (A): Verify output of ga66.
> 520|70 15 25221 2 1|Expected exit code = 0; Received 1
> 220|70 15 1 22:41:36|FAIL
> 410|70 15 1 22:41:36|IC End

This is not an error in AST "cmp", this is IMO a bug in the test suite.

Glenn Fowler from AT&T explained the issue in one of his postings:
-- snip --
the VSC tests for the other assertions [Glenn refers to the assertions
reported in CR #6904808] are flawed. They assume that cmp must always
read the input files and thus touch the st_atime but in the case where
both files are the same cmp can exit 0 after just a stat() of each file
it produces the correct result but does not cause any stat() field of
the input files to change.
-- snip --
BTW: GNU "cmp" and BSD "cmp" use the same optimisation (and therefore
will not change the access timestamp and therefore fail these tests,
too).

AFAIK this bug should be closed and a bug report against VSC needs to be
filed.

*** (#1 of 1): 2010-01-12 05:08:19 GMT+00:00 <User 1-5Q-1267>


=== *Workaround* =============================================================

=== *Additional Details* =====================================================
        Targeted Release: solaris_nevada
        Commit To Fix In Build: 
        Fixed In Build: 
        Integrated In Build: 
        Verified In Build: 
  See Also: 
  Duplicate of: 
  Hooks:
        Hook1: 
        Hook2: 
        Hook3: 
        Hook4: 
        Hook5: 
        Hook6: 
  Program Management: 
  Root Cause: 
  Fix Affects Documentation: No
  Fix Affects Localization: No

=== *History* ================================================================
        Date Submitted: 2009-11-25 15:30:51 GMT+00:00
        Submitted By: <User 1-5Q-6084>

        Status Changed    Date Updated                  Updated By


=== *Service Request* ========================================================
        Impact: Limited
        Functionality: Secondary
        Severity: 4
        Product Name: solaris
        Product Release: osol_2009.06
        Product Build: 
        Operating System: osol_2009.06
        Hardware: x86
        Submitted Date: 2009-11-25 15:30:52 GMT+00:00


=== *Multiple Release (MR) Cluster* - 0 ======================================

Reply via email to