]> git.saurik.com Git - apt.git/blobdiff - test/libapt/file-helpers.cc
tests: deduplicate package creation framework code
[apt.git] / test / libapt / file-helpers.cc
index 6811c4158661f6f4f5d711193ff0e95868ca7137..48d8a9fbbf9a25a2a226f4ae888de32622d24212 100644 (file)
@@ -74,7 +74,7 @@ void helperCreateTemporaryFile(std::string const &id, FileFd &fd, std::string *
       unlink(tempfile);
    free(tempfile);
 
-   EXPECT_TRUE(fd.OpenDescriptor(tempfile_fd, FileFd::ReadWrite));
+   EXPECT_TRUE(fd.OpenDescriptor(tempfile_fd, FileFd::ReadWrite, true));
    if (content != NULL)
    {
       ASSERT_TRUE(fd.Write(content, strlen(content)));