skip rlpgen test on win

This commit is contained in:
Sina Mahmoodi 2026-04-17 08:28:46 +00:00
parent f1165ec322
commit 05663ab790

View file

@ -26,6 +26,7 @@ import (
"go/types" "go/types"
"os" "os"
"path/filepath" "path/filepath"
"runtime"
"testing" "testing"
) )
@ -52,6 +53,9 @@ var tests = []string{"uints", "nil", "rawvalue", "optional", "bigint", "uint256"
func TestOutput(t *testing.T) { func TestOutput(t *testing.T) {
for _, test := range tests { for _, test := range tests {
t.Run(test, func(t *testing.T) { t.Run(test, func(t *testing.T) {
if test == "pkgclash" && runtime.GOOS == "windows" {
t.Skip("source-based importer is pathologically slow on Windows/NTFS")
}
inputFile := filepath.Join("testdata", test+".in.txt") inputFile := filepath.Join("testdata", test+".in.txt")
outputFile := filepath.Join("testdata", test+".out.txt") outputFile := filepath.Join("testdata", test+".out.txt")
bctx, typ, err := loadTestSource(inputFile, "Test") bctx, typ, err := loadTestSource(inputFile, "Test")