csdms / bmi-example-fortran

An example of wrapping a model written in Fortran with a BMI
https://bmi.csdms.io/
MIT License
4 stars 5 forks source link

CTest fails on Windows in CI #19

Closed mdpiper closed 8 months ago

mdpiper commented 1 year ago

Running ctest on the project's unit tests fails on Windows in CI. Works on Linux and macOS in CI. Works locally on Windows. All tests fail with a segfault, so there's not a lot to go on. Here's the first test:

> Run ctest -C Release -VV --output-on-failure
UpdateCTestConfiguration  from :D:/a/bmi-example-fortran/bmi-example-fortran/build/DartConfiguration.tcl
Parse Config file:D:/a/bmi-example-fortran/bmi-example-fortran/build/DartConfiguration.tcl
UpdateCTestConfiguration  from :D:/a/bmi-example-fortran/bmi-example-fortran/build/DartConfiguration.tcl
Parse Config file:D:/a/bmi-example-fortran/bmi-example-fortran/build/DartConfiguration.tcl
Test project D:/a/bmi-example-fortran/bmi-example-fortran/build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 1
      Start  1: test_get_component_name

1: Test command: D:\a\bmi-example-fortran\bmi-example-fortran\build\test\test_get_component_name.exe "D:/a/bmi-example-fortran/bmi-example-fortran/test/sample.cfg"
1: Working Directory: D:/a/bmi-example-fortran/bmi-example-fortran/build/test
1: Test timeout computed to be: 1500
 1/49 Test  #1: test_get_component_name ..........Exit code 0xc0000135
***Exception:   0.02 sec
mdpiper commented 8 months ago

Fixed with #21.