Opened 16 years ago

Closed 16 years ago

#2006 closed defect (fixed)

GPX test fails on win32

Reported by: warmerdam Owned by: Even Rouault
Priority: normal Milestone: 1.5.0
Component: OGR_SF Version: svn-trunk
Severity: normal Keywords: gpx
Cc:

Description

The ogr_gpx.py test script is currently failing on win32 (fwtools build). It seems likely that the ogr_gpx_4 test dataset isn't being closed as expected, so the open fails due to the win32 file io exclusion rules.

C:\warmerda\gdal\autotest\ogr>python ogr_gpx.py
python ogr_gpx.py
  TEST: ogr_gpx_init ... success
  TEST: ogr_gpx_1 ... success
  TEST: ogr_gpx_2 ... success
  TEST: ogr_gpx_3 ... success
  TEST: ogr_gpx_4 ... fail (blowup)
  TEST: ogr_gpx_1 ... success
    Got only 0 features, not the expected 2 features.
  TEST: ogr_gpx_2 ... success
  TEST: ogr_gpx_3 ... success
  TEST: ogr_gpx_cleanup ... success

Test Script: ogr_gpx
Succeeded: 8
Failed:    1 (1 blew exceptions)
Skipped:   0

Traceback (most recent call last):
  File "pymod\gdaltest.py", line 83, in run_tests
    result = func()
  File "ogr_gpx.py", line 229, in ogr_gpx_4
    gdaltest.gpx_ds = ogr.Open( 'tmp/gpx.gpx' )
  File "C:\warmerda\fwtools\pymod\ogr.py", line 124, in Open
    raise OGRError, 'Unable to open: ' + filename
OGRError: Unable to open: tmp/gpx.gpx

Change History (3)

comment:1 by Even Rouault, 16 years ago

I'm looking if I can see something wrong on Linux first.

comment:2 by Even Rouault, 16 years ago

Milestone: 1.5.0
Owner: changed from Mateusz Łoskot to Even Rouault

comment:3 by Even Rouault, 16 years ago

Resolution: fixed
Status: newclosed

This could be reproduced on Linux too, with old-gen python bindings. They require explicit destroy on OGR datasets, whereas NG python bindings don't. Fix commited in r12898

Note: See TracTickets for help on using tickets.