From b924ede71a52b263d17686aaeba098fab3f89785 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Mon, 20 Oct 2025 02:50:06 +0200 Subject: [PATCH] Regression: Not printing backtrace when tests fail for MacOS #2536. --- lib/std/os/macos/darwin.c3 | 2 +- releasenotes.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/std/os/macos/darwin.c3 b/lib/std/os/macos/darwin.c3 index b2b92c79c..7d7a370cc 100644 --- a/lib/std/os/macos/darwin.c3 +++ b/lib/std/os/macos/darwin.c3 @@ -88,8 +88,8 @@ fn String? executable_path() char[4096] buf; uint temp_len = buf.len; if (darwin_NSGetExecutablePath(&buf, &temp_len) < 0) return NOT_FOUND?; - path[:len] = buf[:len]; len = (int)((ZString)&buf).len(); + path[:len] = buf[:len]; } return (String)path[:len]; } diff --git a/releasenotes.md b/releasenotes.md index c2a632dca..489b6ca0a 100644 --- a/releasenotes.md +++ b/releasenotes.md @@ -23,6 +23,7 @@ - Splatting optional compile-time macro parameter from inside lambda expression does not work #2532. - Compiler segfault when getting a nonexistant member from an unnamed struct #2533. - Correctly mention aliased type when method is not implemented #2534. +- Regression: Not printing backtrace when tests fail for MacOS #2536. ### Stdlib changes - Sorting functions correctly took slices by value, but also other types by value. Now, only slices are accepted by value, other containers are always by ref.