Ticket #8 (defect)

Opened 1 year ago

Last modified 1 year ago

elemsizeof_neg test incorrectly checks for error condition

Status: closed (fixed)

Reported by: gary Assigned to: somebody
Priority: major Milestone:
Component: component1 Version: 1.0
Keywords: guts Cc:

When compiled with GCC/UPC 4.0.3.4, the elemsizeof_neg fails as follows:

-------------->      Working on unit -- elemsizeof2_neg\n

ERROR: The NEGATIVE unit [elemsizeof2_neg] pass the compilation phase
The unit will not be run!!!
TEST FAILED for the unit [elemsizeof2_neg]

The body of the test appears as follows:

        /* 
         * To check that the type of the result from upc_elemsizeof operator is size_t
         * var_elem_size is defined with long type but upc_elemsizeof returns size_t type  
         * so compiler MUST raise an ERROR accordingly !!!
         */

        long var_elem_size;
        var_elem_size = upc_elemsizeof(A);

On many systems, size_t is compatible with size_t, and this test should compile without error. I'm unsure how this test might be rewritten to check for the negative case.

Change History

09/24/07 16:09:12: Modified by apokayi

  • status changed from new to closed.
  • resolution set to fixed.

I think this ticket is intended for "elemsizeof2_neg". Action and the case is similar with "blocksizeof2_neg". Test case is dropped since size_t and long may refer to same types according to compiler.