From f32430e1075836f68198c402c1183d8dffbeb4ab Mon Sep 17 00:00:00 2001 From: jake bolewski Date: Fri, 2 Jan 2015 15:13:16 -0500 Subject: [PATCH] add --inline command line tests --- test/cmdlineargs.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/cmdlineargs.jl b/test/cmdlineargs.jl index 6a44ee50c1bbb..62e0da5b96822 100644 --- a/test/cmdlineargs.jl +++ b/test/cmdlineargs.jl @@ -80,6 +80,12 @@ end @test readchomp(`$exename --depwarn=yes -E "Base.syntax_deprecation_warnings(false)"`) == "true" @test !success(`$exename --depwarn=false`) +# --inline +@test readchomp(`$exename -E "bool(Base.JLCompilerOpts().can_inline)"`) == "true" +@test readchomp(`$exename --inline=yes -E "bool(Base.JLCompilerOpts().can_inline)"`) == "true" +@test readchomp(`$exename --inline=no -E "bool(Base.JLCompilerOpts().can_inline)"`) == "false" +@test !success(`$exename --inline=false`) + # pass arguments let testfile = joinpath(dirname(@__FILE__), "test_loadfile.jl") @test readchomp(`$exename $testfile foo -bar --baz`) == "UTF8String[\"foo\",\"-bar\",\"--baz\"]"