[Groonga-commit] ranguba/rroonga at f9c34e9 [master] test: add support context ID format for Windows

Back to archive index
Kouhei Sutou null+****@clear*****
Sat May 11 06:47:53 JST 2019


Kouhei Sutou	2019-05-11 06:47:53 +0900 (Sat, 11 May 2019)

  Revision: f9c34e9f9ccb5cadb193b61ab8d8c2bde0c585ca
  https://github.com/ranguba/rroonga/commit/f9c34e9f9ccb5cadb193b61ab8d8c2bde0c585ca

  Message:
    test: add support context ID format for Windows

  Modified files:
    test/test-query-logger.rb

  Modified: test/test-query-logger.rb (+2 -2)
===================================================================
--- test/test-query-logger.rb    2019-05-11 06:47:28 +0900 (42dcd908)
+++ test/test-query-logger.rb    2019-05-11 06:47:53 +0900 (b73c2b6f)
@@ -110,7 +110,7 @@ class QueryLoggerTest < Test::Unit::TestCase
       Groonga::QueryLogger.log("default")
       Groonga::QueryLogger.log("flags", :flags => "command")
       normalized_infos = infos.collect do |info|
-        info = info.gsub(/\A0x[a-f\d]+\|/,
+        info = info.gsub(/\A[a-fA-Z\d]+\|/,
                          "context_id|")
         info.gsub(/\|[\d]+ \z/,
                   "|timestamp ")
@@ -130,7 +130,7 @@ class QueryLoggerTest < Test::Unit::TestCase
       Groonga::QueryLogger.log("default")
       Groonga::QueryLogger.log("mark", :mark => ":")
       normalized_infos = infos.collect do |info|
-        info.gsub(/\A0x[a-f\d]+\|([^\d])?[\d]+ \z/,
+        info.gsub(/\A[a-fA-Z\d]+\|([^\d])?[\d]+ \z/,
                   "context_id|\\1timestamp ")
       end
       assert_equal([
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190511/f982daa9/attachment-0001.html>


More information about the Groonga-commit mailing list
Back to archive index