Skip to content

Commit 54b4044

Browse files
committed
Backwards compatibility with Test.jl.
1 parent 1a5f6ee commit 54b4044

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

test/runtests.jl

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
using GPUArrays, XUnit
1+
using GPUArrays
22

3-
@testset "GPUArrays" runner=ParallelTestRunner() begin
3+
try
4+
using XUnit
5+
catch
6+
using Test
7+
end
8+
9+
@testset "GPUArrays" begin
410

511
include("testsuite.jl")
612

test/testsuite.jl

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ export supported_eltypes
88

99
using GPUArrays
1010

11-
using XUnit
11+
try
12+
using XUnit
13+
catch
14+
using Test
15+
@eval $(Symbol("@testcase")) = $(getfield(Test, Symbol("@testset")))
16+
end
1217

1318
using LinearAlgebra
1419
using Random

0 commit comments

Comments
 (0)