Perform GC before deleting directories

In some environments, the test will fail because the directory in use cannot be deleted.
This problem was encountered when building 32-bit binary with mingw32 on FreeBSD and running on wine.
This commit is contained in:
dearblue
2024-09-10 21:17:10 +09:00
parent da4cfbf89c
commit 3aa9a5ee68
+1
View File
@@ -133,5 +133,6 @@ assert('Dir#seek') do
end
assert('DirTest.teardown') do
GC.start
assert_nothing_raised{DirTest.teardown}
end