kou commented on code in PR #55804:
URL: https://github.com/apache/arrow/pull/55804#discussion_r4749861688
##########
c_glib/test/test-file-system.rb:
##########
@@ -58,4 +58,27 @@ def test_unrelated_type
end
end
end
+
+ sub_test_case(".ensure_finalized") do
+ def test_create_after_finalization
+ # Finalization affects the whole process, so isolate it from the test
runner.
+ pid = spawn(RbConfig.ruby, "-e", <<-SCRIPT)
+require "gi"
+require "test/unit/assertions"
+
+include Test::Unit::Assertions
+
+Gio = GI.load("Gio")
+Arrow = GI.load("Arrow")
+
+Arrow::FileSystem.create("mock://")
+Arrow::FileSystem.ensure_finalized
+assert_raise(Arrow::Error::Invalid) do
+ Arrow::FileSystem.create("mock://")
+end
+ SCRIPT
+ _, status = Process.wait2(pid)
+ assert_predicate(status, :success?)
+ end
+ end
Review Comment:
We don't need a test for this case. The Ruby bindings will use this later.
It will check this feature.
```suggestion
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]