File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 33
44plan.DefaultTasks = " test" ;
55
6+ pkg_name = " +stdlib" ;
7+
68if ~isMATLABReleaseOlderThan(" R2023b" )
7- plan(" check" ) = matlab .buildtool .tasks .CodeIssuesTask(" +stdlib " , IncludeSubfolders= true );
9+ plan(" check" ) = matlab .buildtool .tasks .CodeIssuesTask(pkg_name , IncludeSubfolders= true );
810end
911
1012if ~isMATLABReleaseOlderThan(" R2024b" )
4446 end
4547
4648 root = plan .RootFolder ;
47- bin = fullfile(root , " bin" );
48- if ~isfolder(bin ), mkdir(bin ), end
49- addpath(bin )
49+ bindir = fullfile(root , pkg_name );
5050
5151 plan(" clean" ) = matlab .buildtool .tasks .CleanTask ;
5252
53- plan(" mex:is_char_device" ) = matlab .buildtool .tasks .MexTask(" is_char_device.cpp" , bin , ...
53+ plan(" mex:is_char_device" ) = matlab .buildtool .tasks .MexTask(" is_char_device.cpp" , bindir , ...
5454 Options= compiler_opt );
5555
5656 plan(" test" ).Dependencies = " mex" ;
Original file line number Diff line number Diff line change @@ -8,12 +8,12 @@ function test_is_char_device(tc)
88% /dev/stdin may not be available on CI systems
99
1010if ispc
11- b = is_char_device( " NUL" ) ;
11+ n = " NUL" ;
1212else
13- b = is_char_device( " /dev/null" ) ;
13+ n = " /dev/null" ;
1414end
1515
16- tc .verifyTrue(b )
16+ tc .verifyTrue(stdlib .is_char_device( n ) )
1717
1818end
1919
You can’t perform that action at this time.
0 commit comments