Skip to content

Commit 3bdd697

Browse files
committed
enhance: add comprehensive Windows CI diagnostics
- Add detailed progress output to identify where Windows tests are failing - Enhanced error reporting in test_legend_comprehensive - Added step-by-step diagnostic output in test_streamplot - Remove problematic getcwd() call that may not be available on Windows This will help identify the specific failure point in Windows CI tests.
1 parent 7a2a569 commit 3bdd697

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

test/test_legend_comprehensive.f90

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ program test_legend_comprehensive
1313
print *, "========================================="
1414
print *, "COMPREHENSIVE LEGEND FUNCTIONALITY TEST"
1515
print *, "========================================="
16+
print *, "Platform: Windows compatibility mode with enhanced error handling"
1617

1718
call test_basic_legend(num_failures)
1819
call test_legend_positions(num_failures)
@@ -46,13 +47,23 @@ subroutine test_basic_legend(failures)
4647
y1 = x**2
4748
y2 = 2.0_wp * x + 5.0_wp
4849

50+
! Enhanced error handling for Windows compatibility
51+
print *, " Creating figure with size [640x480]..."
4952
call figure(figsize=[640.0_wp, 480.0_wp])
53+
54+
print *, " Setting title and labels..."
5055
call title("Basic Legend Test")
5156
call xlabel("X")
5257
call ylabel("Y")
58+
59+
print *, " Adding plots with labels..."
5360
call add_plot(x, y1, label="Quadratic: x²")
5461
call add_plot(x, y2, label="Linear: 2x+5")
62+
63+
print *, " Adding legend..."
5564
call legend()
65+
66+
print *, " Saving to PNG file..."
5667
call savefig('test_legend_basic.png')
5768

5869
! Windows-compatible: Allow time for file system operations
@@ -264,5 +275,6 @@ subroutine windows_safe_delay(milliseconds)
264275
if (current_time - start_time >= delay_seconds) exit
265276
end do
266277
end subroutine windows_safe_delay
278+
267279

268280
end program test_legend_comprehensive

test/test_streamplot.f90

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ program test_streamplot
33
use, intrinsic :: iso_fortran_env, only: real64
44
implicit none
55

6+
print *, "Starting streamplot tests with Windows compatibility..."
7+
68
call test_basic_streamplot()
79
call test_streamplot_parameters()
810
call test_streamplot_grid_validation()
@@ -18,14 +20,19 @@ subroutine test_basic_streamplot()
1820
real(real64), dimension(5,4) :: u, v
1921
integer :: i, j
2022

23+
print *, "Test 1: Basic streamplot initialization"
24+
2125
do j = 1, 4
2226
do i = 1, 5
2327
u(i,j) = 1.0
2428
v(i,j) = 0.0
2529
end do
2630
end do
2731

32+
print *, " Initializing figure [800x600]..."
2833
call fig%initialize(800, 600)
34+
35+
print *, " Creating streamplot..."
2936
call fig%streamplot(x, y, u, v)
3037

3138
if (fig%plot_count == 0) then

0 commit comments

Comments
 (0)