Skip to content

Commit 949231b

Browse files
committed
fix again
1 parent 4cbfadb commit 949231b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/mustachio/render_tests_test.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// This test only needs to be run on one platform. Mac OS simplifies things.
6+
@TestOn('mac-os')
57
import 'dart:io';
68
import 'dart:isolate' show Isolate;
79

@@ -15,8 +17,7 @@ void main() {
1517
var testCasePattern = RegExp(r'test\(.*,');
1618
var dartdocLibUri = await Isolate.resolvePackageUri(
1719
Uri.parse('package:dartdoc/dartdoc.dart'));
18-
var dartdocPath = p.dirname(
19-
p.dirname(p.separator + p.joinAll(dartdocLibUri.pathSegments)));
20+
var dartdocPath = p.dirname(p.dirname(dartdocLibUri.path));
2021
var runtimeRendererRenderTest = File(p.join(dartdocPath, 'test',
2122
'mustachio', 'runtime_renderer_render_test.dart'))
2223
.readAsLinesSync();

0 commit comments

Comments
 (0)