This is an automated email from the ASF dual-hosted git repository. sjanc pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git
commit f0b36f8f116e046161ce77387367433543d1d11f Author: Szymon Janc <[email protected]> AuthorDate: Thu Oct 22 16:20:50 2026 +0200 newt/toolchain: Fix corrupt deps file test on Windows Project base path always uses forward slashes, but the test used the native temporary directory path as compiler base directory. On Windows the source path prefix was not stripped and the object path ended up containing a drive letter, e.g. "...\bin\C:". Assisted-by: Claude:claude-opus-5-5 --- newt/toolchain/deps_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/newt/toolchain/deps_test.go b/newt/toolchain/deps_test.go index e72447d2..a98070dd 100644 --- a/newt/toolchain/deps_test.go +++ b/newt/toolchain/deps_test.go @@ -311,7 +311,8 @@ func TestEscapeDepsPath(t *testing.T) { // A dependency file which cannot be parsed (e.g., written by an older newt) // must cause a rebuild rather than a permanent build failure. func TestCompileRequiredCorruptDepsFile(t *testing.T) { - dir := t.TempDir() + // Project base path always uses forward slashes. + dir := filepath.ToSlash(t.TempDir()) c := newTestCompiler() c.ccPath = "cc" c.baseDir = dir
