[前][次][番号順一覧][スレッド一覧]

ruby-changes:47146

From: mame <ko1@a...>
Date: Wed, 5 Jul 2017 01:02:27 +0900 (JST)
Subject: [ruby-changes:47146] mame:r59260 (trunk): tool/run-gcov.rb: ignore rubyspec_temp directory

mame	2017-07-05 01:02:18 +0900 (Wed, 05 Jul 2017)

  New Revision: 59260

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59260

  Log:
    tool/run-gcov.rb: ignore rubyspec_temp directory
    
    rubyspec compiles the extension libraries for capi specs in a temporary
    directory, and after that, deletes the directory.  gcov resurrects the
    directory to save coverage statistics (.gcda files).  However, the
    source and profiling artifacts (.gcno files) have been deleted.
    So, we need to ignore the .gcda files.

  Modified files:
    trunk/tool/run-gcov.rb
Index: tool/run-gcov.rb
===================================================================
--- tool/run-gcov.rb	(revision 59259)
+++ tool/run-gcov.rb	(revision 59260)
@@ -6,6 +6,8 @@ Pathname.glob("**/*.gcda").sort.each do https://github.com/ruby/ruby/blob/trunk/tool/run-gcov.rb#L6
   if gcda.fnmatch("ext/*")
     cwd, gcda = gcda.split.map {|s| s.to_s }
     objdir = "."
+  elsif gcda.fnmatch("rubyspec_temp/*")
+    next
   else
     cwd, objdir, gcda = ".", gcda.dirname.to_s, gcda.to_s
   end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]