Test for resource leaks when loading and unloading large numbers of SessionBundles. Concurrent with adding this test, we had a leak where the TensorFlow Session was not being closed, which leaked memory. TODO(b/31711147): Increase the SessionBundle ResourceLeakTest iterations and move outside of the test suite; decrease test size back to small at the same time.
| 175 | // move outside of the test suite; decrease test size back to small at the same |
| 176 | // time. |
| 177 | TEST(LoadSessionBundleFromPath, ResourceLeakTest) { |
| 178 | const string export_path = test_util::TestSrcDirPath(kExportPath); |
| 179 | for (int i = 0; i < 100; i++) { |
| 180 | BasicTest(export_path); |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | TEST(LoadSessionBundleFromPath, BasicTensorFlowContrib) { |
| 185 | const string export_path = test_util::TestSrcDirPath(kExportPath); |
nothing calls this directly
no test coverage detected