diff --git a/source/os/test/osDirTests.cpp b/source/os/test/osDirTests.cpp index 53cd550e36..1dba7299be 100644 --- a/source/os/test/osDirTests.cpp +++ b/source/os/test/osDirTests.cpp @@ -283,7 +283,7 @@ TEST(osDirTests, taosExpandDir) { TEST(osDirTests, taosRealPath) { int32_t ret = 0; - char testDir[1024] = "/tmp/tdengine-test-dir"; + char testDir[PATH_MAX * 2] = "/tmp/tdengine-test-dir"; ret = taosMkDir(testDir); EXPECT_EQ(ret, 0);