Browse Source

Destroy OpenCL device context after each test

Peter Colberg 3 years ago
parent
commit
292b61c0f3
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      test/test.lua

+ 2
- 0
test/test.lua View File

@@ -23,6 +23,7 @@ function _M.test_platforms(tests)
23 23
     print()
24 24
     for _, test in ipairs(tests) do
25 25
       test(platform)
26
+      collectgarbage()
26 27
     end
27 28
   end
28 29
 end
@@ -45,6 +46,7 @@ function _M.test_devices(tests)
45 46
       print()
46 47
       for _, test in ipairs(tests) do
47 48
         test(device)
49
+        collectgarbage()
48 50
       end
49 51
     end
50 52
   end

Loading…
Cancel
Save