diff --git a/src/Gnuplot.jl b/src/Gnuplot.jl index 971cdf0..99ee308 100644 --- a/src/Gnuplot.jl +++ b/src/Gnuplot.jl @@ -79,9 +79,7 @@ end blocks). """ function CheckGnuplotVersion(cmd::AbstractString) - setverbose(true) icmd = `$(cmd) --version` - @info "Checking gnuplot version with command: " icmd proc = open(`$icmd`, read=true) s = String(read(proc)) @@ -102,7 +100,7 @@ function CheckGnuplotVersion(cmd::AbstractString) if ver < v"4.7" error("gnuplot ver. >= 4.7 is required, but " * string(ver) * " was found.") end - @info " Gnuplot version: " * string(ver) + #@info " Gnuplot version: " * string(ver) return ver end diff --git a/test/runtests.jl b/test/runtests.jl index 53fa28c..978be00 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,4 +1,8 @@ using Test, Gnuplot +@info "Gnuplot version: " * string(Gnuplot.CheckGnuplotVersion()) +CheckGnuplotVersion +Gnuplot.setverbose(true) +push!(Gnuplot.options.init, "set term unknown") x = [1, 2, 3] y = [4, 5, 6]