Remove the 'N' modifier from llvm-ar.
[oota-llvm.git] / unittests / Support / FileOutputBufferTest.cpp
index c7ca1ab6a612f2355f430f9a2cdecee939b89aa0..5e873193f28868fbcc8a41665354cd16111cf4d3 100644 (file)
@@ -30,12 +30,8 @@ TEST(FileOutputBuffer, Test) {
   // Create unique temporary directory for these tests
   SmallString<128> TestDirectory;
   {
-    int fd;
     ASSERT_NO_ERROR(
-      fs::unique_file("FileOutputBuffer-test-%%-%%-%%-%%/dir", fd,
-                      TestDirectory));
-    ::close(fd);
-    TestDirectory = path::parent_path(TestDirectory);
+        fs::createUniqueDirectory("FileOutputBuffer-test", TestDirectory));
   }
 
   // TEST 1: Verify commit case.