aboutsummaryrefslogtreecommitdiffhomepage
path: root/testdata
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2024-07-12 14:30:15 +0200
committerRon Evans <[email protected]>2024-07-20 14:30:34 +0200
commite409950492340d0e74db681de25f4a2a0dc84b37 (patch)
treed529c13125e3030d2e43679239178efc221f2843 /testdata
parent208eb1a817d6f4c2724f92bc9be68ec020a43784 (diff)
downloadtinygo-e409950492340d0e74db681de25f4a2a0dc84b37.tar.gz
tinygo-e409950492340d0e74db681de25f4a2a0dc84b37.zip
main: refactor error messages to use FileCheck-like patterns
Match the error messages in testdata/errors/*.go like LLVM FileCheck, which includes regular expressions. I believe this is much more flexible, and LLVM uses it in nearly all of their tests so it must work quite well for compilers.
Diffstat (limited to 'testdata')
-rw-r--r--testdata/errors/loader-invaliddep.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/testdata/errors/loader-invaliddep.go b/testdata/errors/loader-invaliddep.go
index db935d38a..05c2f2d5b 100644
--- a/testdata/errors/loader-invaliddep.go
+++ b/testdata/errors/loader-invaliddep.go
@@ -5,4 +5,4 @@ import _ "github.com/tinygo-org/tinygo/testdata/errors/invaliddep"
func main() {
}
-// ERROR: invaliddep/invaliddep.go:1:1: expected 'package', found ppackage
+// ERROR: invaliddep{{[\\/]}}invaliddep.go:1:1: expected 'package', found ppackage