aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/pkgpattern/pkgpattern.go
diff options
context:
space:
mode:
authorqmuntal <quimmuntal@gmail.com>2025-09-19 12:18:26 +0200
committerQuim Muntal <quimmuntal@gmail.com>2025-09-22 08:26:41 -0700
commit2353c1578596aae7128f028c75b52c6047f0b057 (patch)
treeeb25345412ab4e3eb3a822f5098fd1132a62f88c /src/cmd/internal/pkgpattern/pkgpattern.go
parent32dfd69282ac86b0ce49909d36e2a4e5797ad25c (diff)
downloadgo-2353c1578596aae7128f028c75b52c6047f0b057.tar.xz
cmd/cgo/internal/test: skip TestMultipleAssign when using UCRT on Windows
The Universal C Runtime (UCRT) default behavior is to crash the program when strtol is called with an invalid base (that is, not 0 or 2..36). This an invalid base (that is, not 0 or 2..36). This changes the test to skip when running on Windows and linking with UCRT. When using external linking mode this test passes if using the Mingw-w64 toolchain, even when linking with UCRT. That's because the Mingw-w64 linker adds a _set_invalid_parameter_handler call at startup that overrides the default UCRT behavior. However, other toolchains, like MSVC and LLVM, doesn't override the default behavior. Overriding the default behavior is out of the scope for this test, so the test is skipped instead. Fixes #62887 Change-Id: I60f140faf0eda80a2de4e10876be25e0dbe442d2 Reviewed-on: https://go-review.googlesource.com/c/go/+/705455 Reviewed-by: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/cmd/internal/pkgpattern/pkgpattern.go')
0 files changed, 0 insertions, 0 deletions