aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2024-08-08 21:15:59 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2024-08-08 21:15:59 +0200
commitb82cfc5f15366da531d7ec9548a9892571e7aff9 (patch)
treeef10e21d5ef6f08d00ff4632a44bfc0966e43f32
parenta05b73c632b271a8137ed742e7eb9e58c91bee74 (diff)
Fix shoco heisenleak
-rw-r--r--tests/core/compress/test_core_compress.odin10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/core/compress/test_core_compress.odin b/tests/core/compress/test_core_compress.odin
index 4ab63ae67..1f3481f35 100644
--- a/tests/core/compress/test_core_compress.odin
+++ b/tests/core/compress/test_core_compress.odin
@@ -87,12 +87,10 @@ shoco_test :: proc(t: ^testing.T) {
}
for v in Shoco_Tests {
- when ODIN_OS == .Windows {
- v := v
- // Compressed source files are not encoded with carriage returns but git replaces raw files lf with crlf on commit (on windows only)
- // So replace crlf with lf on windows
- v.raw, _ = bytes.replace_all(v.raw, { 0xD, 0xA }, { 0xA })
- }
+ v := v
+ // Compressed source files are not encoded with carriage returns but git replaces raw files lf with crlf on commit (on windows only)
+ // So replace crlf with lf on windows
+ v.raw, _ = bytes.replace_all(v.raw, { 0xD, 0xA }, { 0xA }, context.temp_allocator)
expected_raw := len(v.raw)
expected_compressed := len(v.compressed)