From 1b02cf2b76f56cc70372c2a8e3a220b1cdf91104 Mon Sep 17 00:00:00 2001 From: "William S. Moses" Date: Mon, 3 Jul 2023 16:11:35 -0400 Subject: [PATCH] Now with tests! --- test/sysinfo.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/sysinfo.jl b/test/sysinfo.jl index 3a16dc73b4f6a..cb943cfd38843 100644 --- a/test/sysinfo.jl +++ b/test/sysinfo.jl @@ -10,6 +10,9 @@ Base.Sys.loadavg() @test Base.libllvm_path() isa Symbol @test contains(String(Base.libllvm_path()), "LLVM") +@test length(ccall(:jl_get_cpu_name, String, ())) != 0 +@test length(ccall(:jl_get_cpu_features, String, ())) >= 0 + if Sys.isunix() mktempdir() do tempdir firstdir = joinpath(tempdir, "first")