From cdfd643c0b58d300c57944303fc4b51481d21b81 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Tue, 2 Sep 2014 11:54:07 -0400 Subject: [PATCH] Make coverage an independent task --- Rakefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Rakefile b/Rakefile index 67e6d4a..cdecb62 100644 --- a/Rakefile +++ b/Rakefile @@ -35,7 +35,7 @@ at_exit { Env.process; TestEnv.process} #------------------------------------------------------------------------------ # Main Build Targets #------------------------------------------------------------------------------ -task :default => [:test, :coverage, :build] +task :default => [:test, :build] desc "Build the C Data Structures static library" task :build do @@ -59,10 +59,7 @@ task :coverage => [:test] do obj = gcno.ext('o') path = File.dirname(obj) gcov = File.basename(obj).ext('c.gcov') - #if File.exist?(gcno.ext('gcda')) - sh *['gcov', '-a', '-b', '-c', obj] and - FileUtils.mv("./#{gcov}","#{path}/#{gcov}") - #end + sh *['gcov', '-a', '-b', '-c', obj] and FileUtils.mv("./#{gcov}","#{path}/#{gcov}") end end -- 2.52.0