From db55684abf76257e5dfed03dd1a43018fd952f98 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Wed, 22 May 2024 14:12:35 -0700 Subject: [PATCH] content test: Skip source-file-reading test on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fails there, or at least does in the `flutter/tests` CI environment, with an error like: ::group::❌ C:/Users/RUNNER~1/AppData/Local/Temp/flutter_customer_testing.zulip.4a7c3de6/tests/test/model/content_test.dart: all content examples are tested (failed) FileSystemException: Cannot open file, path = '/C:/Users/RUNNER~1/AppData/Local/Temp/flutter_customer_testing.zulip.4a7c3de6/tests/test/model/content_test.dart' (OS Error: The filename, directory name, or volume label syntax is incorrect. , errno = 123) dart:io _File.readAsStringSync test\model\content_test.dart 1082:39 main. ::endgroup:: I'm not sure what's wrong, but don't really feel like finding out (or working out how to fix it) -- and, conveniently, there's really no need to do so. See comment. --- test/model/content_test.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/model/content_test.dart b/test/model/content_test.dart index 5b29c7d552..3d1aca518a 100644 --- a/test/model/content_test.dart +++ b/test/model/content_test.dart @@ -1087,5 +1087,7 @@ void main() { r'^\s*testParseExample\s*\(\s*ContentExample\s*\.\s*(\w+)\);', ).allMatches(source).map((m) => m.group(1)); check(testedExamples).unorderedEquals(declaredExamples); - }); + }, skip: Platform.isWindows, // [intended] purely analyzes source, so + // any one platform is enough; avoid dealing with Windows file paths + ); }