Skip to content

Fix JET tests. #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/components.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ function ComponentList(::Type{T}, d::Device) where {T<:AbstractComponent}
SoapySDRDevice_listGPIOBanks(d, len)
elseif T <: Register
SoapySDRDevice_listRegisterInterfaces(d, len)
else
error("Unsupported component type: $T")
end
strlist = StringList(ptr, len[])
ComponentList{T}(strlist)
Expand Down
4 changes: 2 additions & 2 deletions src/device/stream.jl
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function Base.read!(
timeout_us,
)

if typeof(flags) <: Ref
if flags isa Ref
flags[] |= out_flags[]
end

Expand Down Expand Up @@ -337,7 +337,7 @@ function Base.write(
timeout_us,
)

if typeof(flags) <: Ref
if flags isa Ref
flags[] |= out_flags[]
end

Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,6 @@ SoapySDR.register_log_handler()

isempty(VERSION.prerelease) && @testset "JET" begin
using JET
JET.test_package(SoapySDR; target_modules=[SoapySDR])
JET.test_package(SoapySDR; target_defined_modules=true)
end
end
Loading