diff --git a/test/test_p4est_2d.jl b/test/test_p4est_2d.jl index b88f6b4dc3a..cc46f1c0689 100644 --- a/test/test_p4est_2d.jl +++ b/test/test_p4est_2d.jl @@ -359,13 +359,14 @@ end coverage = occursin("--code-coverage", cmd) && !occursin("--code-coverage=none", cmd) if coverage - # Run with coverage takes 6 time steps. - @test startswith(lines[end], "6, 0.005") - @test occursin(r"1.0, 0.968", lines[end]) + # Run with coverage takes 1 time step. + @test occursin(r"1, 0.00404[0-9]*, 1.0, 0.96795", lines[end]) else # Run without coverage takes 85 time steps. @test startswith(lines[end], "85, 0.3, 1.0, 0.57771") end + @test length(split(lines[end], ",")) == 4 + @test any(occursin.(r"NaN", lines)) == false # Ensure that we do not have excessive memory allocations # (e.g., from type instabilities) let diff --git a/test/test_structured_2d.jl b/test/test_structured_2d.jl index f2f389ad54d..8a87044068c 100644 --- a/test/test_structured_2d.jl +++ b/test/test_structured_2d.jl @@ -744,12 +744,13 @@ end !occursin("--code-coverage=none", cmd) if coverage # Run with coverage takes 1 time steps. - @test startswith(lines[end], "1, 0.0002") - @test occursin(r"1.0, 0.9809", lines[end]) + @test occursin(r"1, 0.0002[0-9]*, 1.0, 0.9809", lines[end]) else # Run without coverage takes 193 time steps. @test startswith(lines[end], "193, 0.05, 1.0, 0.3160") end + @test length(split(lines[end], ",")) == 4 + @test any(occursin.(r"NaN", lines)) == false # Ensure that we do not have excessive memory allocations # (e.g., from type instabilities) let @@ -796,6 +797,8 @@ end # Run without coverage takes 191 time steps. @test startswith(lines[end], "191, 0.05, 3.70") end + @test length(split(lines[end], ",")) == 10 + @test any(occursin.(r"NaN", lines)) == false # Test alphas_min.txt lines = readlines(joinpath("out", "alphas_min.txt")) @@ -811,6 +814,8 @@ end # Run without coverage takes 191 time steps. @test startswith(lines[end], "191, 0.05, -0.0, 0.7216") end + @test length(split(lines[end], ",")) == 10 + @test any(occursin.(r"NaN", lines)) == false # Ensure that we do not have excessive memory allocations # (e.g., from type instabilities) let diff --git a/test/test_tree_2d_euler.jl b/test/test_tree_2d_euler.jl index 8c95eed9b39..eaba29a15ce 100644 --- a/test/test_tree_2d_euler.jl +++ b/test/test_tree_2d_euler.jl @@ -574,12 +574,13 @@ end !occursin("--code-coverage=none", cmd) if coverage # Run with coverage takes 6 time steps. - @test startswith(lines[end], "6, 0.014") - @test occursin(r"1.0, 0.953", lines[end]) + @test occursin(r"6, 0.014[0-9]*, 1.0, 0.953", lines[end]) else # Run without coverage takes 381 time steps. @test startswith(lines[end], "381, 1.0, 1.0, 0.544") end + @test length(split(lines[end], ",")) == 4 + @test any(occursin.(r"NaN", lines)) == false # Ensure that we do not have excessive memory allocations # (e.g., from type instabilities) let @@ -644,6 +645,8 @@ end # Run without coverage takes 349 time steps. @test startswith(lines[end], "349, 1.0, 0.0002") end + @test length(split(lines[end], ",")) == 14 + @test any(occursin.(r"NaN", lines)) == false # Test alphas_min.txt lines = readlines(joinpath("out", "alphas_min.txt")) @@ -659,6 +662,8 @@ end # Run without coverage takes 349 time steps. @test startswith(lines[end], "349, 1.0, -0.0, 0.773") end + @test length(split(lines[end], ",")) == 14 + @test any(occursin.(r"NaN", lines)) == false # Ensure that we do not have excessive memory allocations # (e.g., from type instabilities) let