Changeset 42

Show
Ignore:
Timestamp:
10/29/06 07:30:27
Author:
apokayi
Message:

deleted redundant lines, PASSES now

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/io_fread_shared.upc

    r31 r42  
    6464io_fread_shared(GULA_UNIT) 
    6565{ 
    66  
    67 /* To check that this function only works for the file handle that is open for reading */ 
    68         fd = upc_all_fopen( fname,  
    69                 UPC_WRONLY | UPC_COMMON_FP, 0, NULL); 
    70         if( fd == NULL ) 
    71                 GULA_FAIL("failed to open the file"); 
    72         upc_barrier; 
    73  
    74         ret = upc_all_fread_shared(fd, NULL, 0, 2, 0, sync); 
    75         if( ret != -1 ) 
    76                 GULA_FAIL("failed to prevent read from WRONLY"); 
    77         upc_barrier; 
    78  
    79         if( upc_all_fclose(fd) != 0 ) 
    80                 GULA_FAIL("failed to close the file"); 
    81         upc_barrier;     
    82  
    8366/* To check this function can read arbitrary bytes from the file handle opened with  
    8467 * UPC_COMMON_FP flag to the shared buffer and this function call updates the offset  
    8568 * of the file pointer 
    8669 */ 
    87  
    8870        /* Random setup for size, and nmemb */ 
    8971