Skip to content

Commit 5d64d75

Browse files
committed
format
1 parent 202fb85 commit 5d64d75

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

libcxx/test/support/filesystem_test_helper.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -329,13 +329,13 @@ struct scoped_test_env
329329
// If file.size() is too big, try to create a file directly inside
330330
// /tmp to make sure file path is short enough.
331331
if (file.size() <= sizeof(address.sun_path) && utils::exists("/tmp")) {
332-
fs::path const tmp = "/tmp";
333-
std::size_t i = std::hash<std::string>()(std::to_string(std::time(nullptr)));
334-
fs::path p = tmp / ("libcxx-socket-" + file + "-" + std::to_string(i));
335-
while (utils::exists(p.string())) {
336-
p = tmp / ("libcxx-socket-" + file + "-" + std::to_string(++i));
337-
}
338-
file = p.string();
332+
fs::path const tmp = "/tmp";
333+
std::size_t i = std::hash<std::string>()(std::to_string(std::time(nullptr)));
334+
fs::path p = tmp / ("libcxx-socket-" + file + "-" + std::to_string(i));
335+
while (utils::exists(p.string())) {
336+
p = tmp / ("libcxx-socket-" + file + "-" + std::to_string(++i));
337+
}
338+
file = p.string();
339339
}
340340
assert(file.size() <= sizeof(address.sun_path));
341341
::strncpy(address.sun_path, file.c_str(), sizeof(address.sun_path));

0 commit comments

Comments
 (0)