Skip to content

Commit 03c6b05

Browse files
committed
test lint
1 parent df65ee7 commit 03c6b05

15 files changed

+33
-26
lines changed

+stdlib/checkRAM.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,17 @@
1414
% get available RAM
1515
freebytes = stdlib.ram_free();
1616

17+
limit_bytes = inf; % no limit set
18+
19+
if ~stdlib.isoctave()
1720
% get user set preference for memory limit
1821
s = settings;
1922
ws = s.matlab.desktop.workspace;
2023

2124
% Check if the maximum array size limit is enabled
2225
if ws.ArraySizeLimitEnabled.ActiveValue
2326
limit_bytes = double(ws.ArraySizeLimit.ActiveValue) / 100 * stdlib.ram_total();
24-
else
25-
limit_bytes = inf; % no limit set
27+
end
2628
end
2729

2830
limit_bytes = min(limit_bytes, freebytes);

+stdlib/h5save_exist.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function h5save_exist(filename, varname, A, sizeA)
3737

3838
end
3939

40-
%!test
40+
%!testif 0
4141
%! if !isempty(pkg('list', 'hdf5oct'))
4242
%! pkg load hdf5oct
4343
%! fn = tempname();

+stdlib/h5save_new.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function h5save_new(filename, varname, A, sizeA, compressLevel)
3737

3838
end
3939

40-
%!test
40+
%!testif 0
4141
%! if !isempty(pkg('list', 'hdf5oct'))
4242
%! pkg load hdf5oct
4343
%! fn = tempname();

+stdlib/h5size.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
end
2424

2525

26-
%!test
26+
%!testif 0
2727
%! if !isempty(pkg('list', 'hdf5oct'))
2828
%! pkg load hdf5oct
2929
%! fn = tempname();

+stdlib/h5variables.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@
4141
%! fn = tempname();
4242
%! ds = '/a';
4343
%! h5create(fn, ds, [1])
44-
%! assert(h5variables(fn, ''), {'/a'})
44+
%! assert(h5variables(fn, ''), {ds})
4545
%! delete(fn)
4646
%! endif

+stdlib/java_run_octave.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
% * stderr: stderr from process
2121
%
2222
%% Example
23-
% subprocess_run({'mpiexec', '-help2'})
23+
% java_run_octave({'mpiexec', '-help2'})
2424
%
2525
% NOTE: if cwd option used, any paths must be absolute or relative to cwd.
2626
% otherwise, they are relative to pwd.
@@ -107,7 +107,7 @@
107107
warning(stderr)
108108
end
109109

110-
end % function subprocess_run
110+
end
111111

112112

113113
function msg = read_stream(stream)
@@ -131,11 +131,11 @@
131131

132132
%!test
133133
%! if ispc, c = "dir"; else, c = "ls"; end
134-
%! [r, m, e] = subprocess_run_octave(c);
134+
%! [r, m, e] = java_run_octave(c);
135135
%! assert(r == 0)
136136
%! assert(length(m) > 0)
137137
%! assert(length(e) == 0)
138-
%! [r, mc, e] = subprocess_run_octave(c, [], '/');
138+
%! [r, mc, e] = java_run_octave(c, [], '/');
139139
%! assert(r == 0)
140140
%! assert(!strcmp(m, mc))
141141
%!testif 0
@@ -148,15 +148,15 @@
148148
%! else
149149
%! c = {"echo", strcat('$', names{i})};
150150
%! end
151-
%! [r, m, e] = subprocess_run_octave(c, env);
151+
%! [r, m, e] = java_run_octave(c, env);
152152
%! assert(r == 0)
153153
%! assert(strcmp(m, vals{i}), '%s != %s', m, vals{i})
154154
%! assert(length(e) == 0)
155155
%! end
156156
%!test
157157
%! c = "../test/sleep.exe";
158158
%! if isfile(c)
159-
%! [r, m, e] = subprocess_run_octave(c, [], [], [], 1);
159+
%! [r, m, e] = java_run_octave(c, [], [], [], 1);
160160
%! assert(r == -1)
161161
%! assert(length(m) == 0)
162162
%! assert(strncmp(e, 'Subprocess timeout', 17))

+stdlib/join.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@
4141
%!assert(join("", ""), "")
4242
%!assert(join("", "b"), "b")
4343
%!assert(join("a", ""), "a")
44-
%!assert(join("a", "b"), "a/b")
44+
%!assert(join("a", "b"), fullfile("a", "b"))
4545
%!assert(join("a", "/b/c"), "/b/c")

+stdlib/ncexists.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
end
2929

3030

31-
%!test
31+
%!testif 0
3232
%! if !isempty(pkg('list', 'netcdf'))
3333
%! pkg load netcdf
3434
%! fn = tempname();

+stdlib/ncsave_exist.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function ncsave_exist(filename, varname, A, sizeA)
2121

2222
end
2323

24-
%!test
24+
%!testif 0
2525
%! if !isempty(pkg('list', 'netcdf'))
2626
%! pkg load netcdf
2727
%! fn = tempname();

+stdlib/ncsave_new.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function ncsave_new(file, varname, A, sizeA, ncdims, compressLevel)
2929

3030
end
3131

32-
%!test
32+
%!testif 0
3333
%! if !isempty(pkg('list', 'netcdf'))
3434
%! pkg load netcdf
3535
%! fn = tempname();

0 commit comments

Comments
 (0)