Skip to content

Commit 0bf01bb

Browse files
committed
build in a container on Linux to preserve backward compatibility
1 parent f7d6ec3 commit 0bf01bb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/utils/terminateProcess.m

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ function terminateProcess(testCase, process, terminatecmd)
88
end
99

1010
system(testCase.ListPid(process) + " > " + testCase.PidFile);
11+
type(testCase.PidFile);
1112
tbl = testCase.ReadPidList(testCase.PidFile);
13+
if isa(tbl, "table")
14+
tbl.Properties.VariableNames
15+
end
1216
pid = testCase.ExtractPid(tbl);
1317
retry = 0;
1418
% sometimes kill will fail with a RuntimeError: windows-kill-library: ctrl-routine:findAddress:checkAddressIsNotNull
@@ -22,7 +26,9 @@ function terminateProcess(testCase, process, terminatecmd)
2226
system(testCase.ListPid(process) + " > " + testCase.PidFile);
2327
type(testCase.PidFile);
2428
tbl = testCase.ReadPidList(testCase.PidFile);
25-
tbl.Properties.VariableNames
29+
if isa(tbl, "table")
30+
tbl.Properties.VariableNames
31+
end
2632
pid = testCase.ExtractPid(tbl);
2733
retry = retry + 1;
2834
end

0 commit comments

Comments
 (0)