diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-09-03 02:05:30 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-09-03 02:05:30 +0800 |
commit | f6c36037edc3f1293f96e84691136c657ca488dc (patch) | |
tree | 0249461b362e0899bdb07e7e37f41a53960b21a6 /test/common/platform/unix | |
parent | 948fef53cefe6a7186fab29d9ad2e9838d702912 (diff) | |
download | cru-f6c36037edc3f1293f96e84691136c657ca488dc.tar.gz cru-f6c36037edc3f1293f96e84691136c657ca488dc.tar.bz2 cru-f6c36037edc3f1293f96e84691136c657ca488dc.zip |
Fix subprocess OSX compile error.
Diffstat (limited to 'test/common/platform/unix')
-rw-r--r-- | test/common/platform/unix/UnixFileStreamTest.cpp | 2 |
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); |