Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: tests/standalone/io/test_extension_test.dart

Issue 57923004: Allow Windows network share paths for the script path and the package root. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« runtime/bin/extensions.cc ('K') | « runtime/bin/extensions.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // 4 //
5 // Dart test program for testing native extensions. 5 // Dart test program for testing native extensions.
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 import "package:path/path.dart"; 8 import "package:path/path.dart";
9 import 'dart:async'; 9 import 'dart:async';
10 import 'dart:io'; 10 import 'dart:io';
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 var extensionDartFile = join(scriptDirectory, 'test_extension.dart'); 49 var extensionDartFile = join(scriptDirectory, 'test_extension.dart');
50 return copyFileToDirectory(extensionDartFile, testDirectory); 50 return copyFileToDirectory(extensionDartFile, testDirectory);
51 }).then((_) { 51 }).then((_) {
52 var testExtensionTesterFile = 52 var testExtensionTesterFile =
53 join(scriptDirectory, 'test_extension_tester.dart'); 53 join(scriptDirectory, 'test_extension_tester.dart');
54 return copyFileToDirectory(testExtensionTesterFile, testDirectory); 54 return copyFileToDirectory(testExtensionTesterFile, testDirectory);
55 }).then((_) { 55 }).then((_) {
56 var script = join(testDirectory, 'test_extension_tester.dart'); 56 var script = join(testDirectory, 'test_extension_tester.dart');
57 return Process.run(Platform.executable, [script]); 57 return Process.run(Platform.executable, [script]);
58 })..then((ProcessResult result) { 58 })..then((ProcessResult result) {
59 if (result.exitCode != 0) {
Søren Gjesse 2013/11/04 16:15:58 Debug print.
Bill Hesse 2013/11/05 08:52:23 This is not debug printing, but output of the subp
60 print('Subprocess failed with exit code ${result.exitCode}');
61 print('stdout:');
62 print('${result.stdout}');
63 print('stderr:');
64 print('${result.stderr}');
65 }
59 Expect.equals(0, result.exitCode); 66 Expect.equals(0, result.exitCode);
60 tempDirectory.deleteSync(recursive: true); 67 tempDirectory.deleteSync(recursive: true);
61 })..catchError((_) { 68 })..catchError((_) {
62 tempDirectory.deleteSync(recursive: true); 69 tempDirectory.deleteSync(recursive: true);
63 }); 70 });
64 } 71 }
OLDNEW
« runtime/bin/extensions.cc ('K') | « runtime/bin/extensions.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698