diff options
Diffstat (limited to 'init/init_test.cpp')
-rw-r--r-- | init/init_test.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/init/init_test.cpp b/init/init_test.cpp index 3da14b5ab..7093ba980 100644 --- a/init/init_test.cpp +++ b/init/init_test.cpp @@ -152,10 +152,11 @@ TEST(init, EventTriggerOrderMultipleFiles) { "on boot\n" "execute 3"; // clang-format on - // write_file() ensures the right mode is set - ASSERT_TRUE(write_file(std::string(dir.path) + "/a.rc", dir_a_script)); + // WriteFile() ensures the right mode is set + std::string err; + ASSERT_TRUE(WriteFile(std::string(dir.path) + "/a.rc", dir_a_script, &err)); - ASSERT_TRUE(write_file(std::string(dir.path) + "/b.rc", "on boot\nexecute 5")); + ASSERT_TRUE(WriteFile(std::string(dir.path) + "/b.rc", "on boot\nexecute 5", &err)); // clang-format off std::string start_script = "import " + std::string(first_import.path) + "\n" |