Skip to content

Commit 352691d

Browse files
committed
260510.142745.CST [skip ci] try whether the crash "ERROR: MATLAB error Exit Status: 0xc0000409" still happens if we ensure iprint >= 0
1 parent 99e17a4 commit 352691d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/test_matlab_windows.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,6 @@ jobs:
125125
test_classical = true;
126126
% With MinGW, if we set verbose to true, MATLAB will crash with the message "ERROR: MATLAB error Exit Status: 0xc0000409".
127127
% To be investigated whether this is a bug of MATLAB or MinGW. Setting verbose to false is a workaround.
128-
verbose = ~strcmpi('${{ matrix.compiler }}', 'mingw');
128+
%verbose = ~strcmpi('${{ matrix.compiler }}', 'mingw');
129+
verbose = true; % For test
129130
testprima_ex(test_classical, verbose);

matlab/tests/testprima.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ function testprima(release, precision, nrun, test_classical, verbose)
136136
options.solver = solver;
137137
options.classical = clflag;
138138
options.iprint = round(4*(2*rand() - 1)) * verbose;
139+
options.iprint = abs(options.iprint); % For test
139140
problem.options = options;
140141

141142
switch type

0 commit comments

Comments
 (0)