Open
Description
When running tests in CI on Windows (#218) a few tests fail:
---- config::tests::test_clear_option_thread_local stdout ----
thread 'config::tests::test_clear_option_thread_local' panicked at 'assertion failed: `(left == right)`
left: `"256"`,
right: `"DEFAULT"`', src\config.rs:201:9
---- raster::tests::test_create_with_band_type_with_options stdout ----
thread 'raster::tests::test_create_with_band_type_with_options' panicked at 'called `Result::unwrap()` on an `Err` value: NullPointer { method_name: "GDALCreate", msg: "Attempt to create new tiff file `/tmp/test.tif' failed: No error" }', src\raster\tests.rs:285:14
---- spatial_ref::tests::auto_identify stdout ----
thread 'spatial_ref::tests::auto_identify' panicked at 'called `Result::unwrap()` on an `Err` value: OgrError { err: 7, method_name: "OSRAutoIdentifyEPSG" }', src\spatial_ref\tests.rs:207:38
---- vector::vector_tests::tests::test_write_features stdout ----
thread 'vector::vector_tests::tests::test_write_features' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 32, kind: Other, message: "The process cannot access the file because it is being used by another process." }', src\vector\vector_tests\mod.rs:660:53
Comments from @rmanoka:
raster::tests::test_create_with_band_type_with_options
: we're trying to create/tmp/test.tif
which is not valid path in windows. Should use a properenv::temp_dir
for platform compat.vector::vector_tests::tests::test_write_features
: seems to be fromfs::remove_file
when the dataset is open. Should remove the file after the dataset is dropped I guess.spatial_ref::tests::auto_identify
: the error code isOGRERR_UNSUPPORTED_SRS
so I suppose the GDAL installation is outdated / doesn't contain many coordinate systems?
Metadata
Metadata
Assignees
Labels
No labels