From a953244b3f100a8547f4dba839cebd2067f38c21 Mon Sep 17 00:00:00 2001 From: jdrst <75489664+jdrst@users.noreply.github.com> Date: Tue, 2 Aug 2022 22:21:18 +0200 Subject: [PATCH] updates test.dart to correctly handle windows paths --- tool/bin/test.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tool/bin/test.dart b/tool/bin/test.dart index cb1981cb9..69396dae6 100644 --- a/tool/bin/test.dart +++ b/tool/bin/test.dart @@ -205,13 +205,14 @@ class Test { bool parse() { // Get the path components. - var parts = _path.split("/"); + var parts = _path.split(Platform.pathSeparator); var subpath = ""; String state; // Figure out the state of the test. We don't break out of this loop because // we want lines for more specific paths to override more general ones. for (var part in parts) { + if (part == ".") continue; if (subpath.isNotEmpty) subpath += "/"; subpath += part;