diff options
Diffstat (limited to 'tensorflow/core/platform/file_system_test.cc')
-rw-r--r-- | tensorflow/core/platform/file_system_test.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tensorflow/core/platform/file_system_test.cc b/tensorflow/core/platform/file_system_test.cc index f5ca57bda5c..d49a252ea05 100644 --- a/tensorflow/core/platform/file_system_test.cc +++ b/tensorflow/core/platform/file_system_test.cc @@ -273,6 +273,14 @@ TEST(InterPlanetaryFileSystemTest, HasAtomicMove) { EXPECT_EQ(has_atomic_move, true); } +TEST(InterPlanetaryFileSystemTest, CanCreateTempFile) { + InterPlanetaryFileSystem ipfs; + const string dirname = io::JoinPath(kPrefix, "match-00/abc/00"); + bool can_create_temp_file; + TF_EXPECT_OK(ipfs.CanCreateTempFile(dirname, &can_create_temp_file)); + EXPECT_EQ(can_create_temp_file, true); +} + // A simple file system with a root directory and a single file underneath it. class TestFileSystem : public NullFileSystem { public: |