File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
33function a = cpu_arch()
44
5- a = ' ' ;
6-
75if stdlib .has_dotnet()
86 a = System .Runtime .InteropServices .RuntimeInformation .OSArchitecture ;
97 % https://learn.microsoft.com/en-us/dotnet/core/compatibility/interop/7.0/osarchitecture-emulation
108elseif stdlib .has_java()
119 a = javaMethod(" getProperty" , " java.lang.System" , " os.arch" );
10+ else
11+ a = computer(' arch' );
1212end
1313
1414try % #ok<*TRYNC>
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ function test_cpu_arch(tc)
6969tc .assumeTrue(stdlib .has_dotnet() || stdlib .has_java())
7070
7171arch = stdlib .cpu_arch();
72- tc .verifyGreaterThan(strlength(arch ), 0 )
72+ tc .verifyGreaterThan(strlength(arch ), 0 , " CPU architecture should not be empty " )
7373end
7474
7575function test_ram_total(tc )
You can’t perform that action at this time.
0 commit comments