From 055a5e55faf0f5c8d5bb6db2e17d5d48f13a584c Mon Sep 17 00:00:00 2001 From: David Chase Date: Tue, 19 Jul 2022 15:20:55 -0400 Subject: [PATCH] [dev.unified] test: change Unicode file/package name to use characters not translated by macOS. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In filenames, macOS translates Ä (U+00c4, c3 84) to Ä (U+0041 U+0308, 41 cc 88). This causes problems for run.go's crude rules for testing the compiler. Fixes #53954. Change-Id: I850421cbf07e022ca5ff8122e0fb4e80deb55adf Reviewed-on: https://go-review.googlesource.com/c/go/+/418334 Run-TryBot: David Chase TryBot-Result: Gopher Robot Reviewed-by: Matthew Dempsky --- test/fixedbugs/issue27836.dir/Äfoo.go | 13 ------------- test/fixedbugs/issue27836.dir/Ämain.go | 13 ------------- test/fixedbugs/issue27836.dir/Þfoo.go | 17 +++++++++++++++++ test/fixedbugs/issue27836.dir/Þmain.go | 17 +++++++++++++++++ 4 files changed, 34 insertions(+), 26 deletions(-) delete mode 100644 test/fixedbugs/issue27836.dir/Äfoo.go delete mode 100644 test/fixedbugs/issue27836.dir/Ämain.go create mode 100644 test/fixedbugs/issue27836.dir/Þfoo.go create mode 100644 test/fixedbugs/issue27836.dir/Þmain.go diff --git a/test/fixedbugs/issue27836.dir/Äfoo.go b/test/fixedbugs/issue27836.dir/Äfoo.go deleted file mode 100644 index 8b6a814c3c..0000000000 --- a/test/fixedbugs/issue27836.dir/Äfoo.go +++ /dev/null @@ -1,13 +0,0 @@ -package Äfoo - -var ÄbarV int = 101 - -func Äbar(x int) int { - defer func() { ÄbarV += 3 }() - return Äblix(x) -} - -func Äblix(x int) int { - defer func() { ÄbarV += 9 }() - return ÄbarV + x -} diff --git a/test/fixedbugs/issue27836.dir/Ämain.go b/test/fixedbugs/issue27836.dir/Ämain.go deleted file mode 100644 index 25d2c71fc0..0000000000 --- a/test/fixedbugs/issue27836.dir/Ämain.go +++ /dev/null @@ -1,13 +0,0 @@ -package main - -import ( - "fmt" - - "./Äfoo" - Äblix "./Äfoo" -) - -func main() { - fmt.Printf("Äfoo.Äbar(33) returns %v\n", Äfoo.Äbar(33)) - fmt.Printf("Äblix.Äbar(33) returns %v\n", Äblix.Äbar(33)) -} diff --git a/test/fixedbugs/issue27836.dir/Þfoo.go b/test/fixedbugs/issue27836.dir/Þfoo.go new file mode 100644 index 0000000000..ea6be0f49f --- /dev/null +++ b/test/fixedbugs/issue27836.dir/Þfoo.go @@ -0,0 +1,17 @@ +// Copyright 2022 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package Þfoo + +var ÞbarV int = 101 + +func Þbar(x int) int { + defer func() { ÞbarV += 3 }() + return Þblix(x) +} + +func Þblix(x int) int { + defer func() { ÞbarV += 9 }() + return ÞbarV + x +} diff --git a/test/fixedbugs/issue27836.dir/Þmain.go b/test/fixedbugs/issue27836.dir/Þmain.go new file mode 100644 index 0000000000..596c620d80 --- /dev/null +++ b/test/fixedbugs/issue27836.dir/Þmain.go @@ -0,0 +1,17 @@ +// Copyright 2022 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package main + +import ( + "fmt" + + "./Þfoo" + Þblix "./Þfoo" +) + +func main() { + fmt.Printf("Þfoo.Þbar(33) returns %v\n", Þfoo.Þbar(33)) + fmt.Printf("Þblix.Þbar(33) returns %v\n", Þblix.Þbar(33)) +}