Skip to content

Test failures on Windows #219

Open
Open
@pka

Description

@pka

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:

  1. 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 proper env::temp_dir for platform compat.
  2. vector::vector_tests::tests::test_write_features : seems to be from fs::remove_file when the dataset is open. Should remove the file after the dataset is dropped I guess.
  3. spatial_ref::tests::auto_identify: the error code is OGRERR_UNSUPPORTED_SRS so I suppose the GDAL installation is outdated / doesn't contain many coordinate systems?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions