aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-09-03 02:05:30 +0800
committerYuqian Yang <crupest@crupest.life>2025-09-03 02:05:30 +0800
commitf6c36037edc3f1293f96e84691136c657ca488dc (patch)
tree0249461b362e0899bdb07e7e37f41a53960b21a6 /test
parent948fef53cefe6a7186fab29d9ad2e9838d702912 (diff)
downloadcru-f6c36037edc3f1293f96e84691136c657ca488dc.tar.gz
cru-f6c36037edc3f1293f96e84691136c657ca488dc.tar.bz2
cru-f6c36037edc3f1293f96e84691136c657ca488dc.zip
Fix subprocess OSX compile error.
Diffstat (limited to 'test')
-rw-r--r--test/common/platform/unix/UnixFileStreamTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/common/platform/unix/UnixFileStreamTest.cpp b/test/common/platform/unix/UnixFileStreamTest.cpp
index fa99aa29..417fccc2 100644
--- a/test/common/platform/unix/UnixFileStreamTest.cpp
+++ b/test/common/platform/unix/UnixFileStreamTest.cpp
@@ -13,7 +13,7 @@ TEST_CASE("UnixFileStream Work", "[stream]") {
auto temp_file_path =
(std::filesystem::temp_directory_path() / "cru_test_temp.XXXXXX")
.generic_string();
- mktemp(temp_file_path.data());
+ mkstemp(temp_file_path.data());
UnixFileStream file(temp_file_path.c_str(), O_WRONLY | O_CREAT);
file.Write("abc", 3);