From 3a02540816ce0dbdf6fd685be3a099ac893aa4e1 Mon Sep 17 00:00:00 2001 From: Marc Prud'hommeaux Date: Sun, 7 Dec 2025 16:35:34 -0500 Subject: [PATCH] Update Android followSymlinkInits to handle sizeAllocated --- Tests/SystemTests/StatTests.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tests/SystemTests/StatTests.swift b/Tests/SystemTests/StatTests.swift index 524226d2..4cfd972a 100644 --- a/Tests/SystemTests/StatTests.swift +++ b/Tests/SystemTests/StatTests.swift @@ -118,7 +118,12 @@ private struct StatTests { #expect(targetStat.type == .regular) #expect(symlinkStat.type == .symbolicLink) #expect(symlinkStat.size < targetStat.size) + + #if os(Android) + #expect(symlinkStat.sizeAllocated <= targetStat.sizeAllocated) + #else #expect(symlinkStat.sizeAllocated < targetStat.sizeAllocated) + #endif // Set each .st_atim back to its original value for comparison