| OLD | NEW |
| 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 import 'dart:fletch.ffi'; | 5 import 'dart:dartino.ffi'; |
| 6 import 'dart:fletch.os'; | 6 import 'dart:dartino.os'; |
| 7 | 7 |
| 8 import 'package:expect/expect.dart'; | 8 import 'package:expect/expect.dart'; |
| 9 import 'package:file/file.dart'; | 9 import 'package:file/file.dart'; |
| 10 | 10 |
| 11 void main() { | 11 void main() { |
| 12 testStartDetachedValid(); | 12 testStartDetachedValid(); |
| 13 testStartDetachedNullPath(); | 13 testStartDetachedNullPath(); |
| 14 testStartDetachedEmptyPath(); | 14 testStartDetachedEmptyPath(); |
| 15 testStartDetachedInvalidPath(); | 15 testStartDetachedInvalidPath(); |
| 16 testStartDetachedNonExecutablePath(); | 16 testStartDetachedNonExecutablePath(); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 } | 53 } |
| 54 | 54 |
| 55 void testStartDetachedNonExecutablePath() { | 55 void testStartDetachedNonExecutablePath() { |
| 56 // Invalid executable. | 56 // Invalid executable. |
| 57 var nonExecFile = new File.temporary('OsTest'); | 57 var nonExecFile = new File.temporary('OsTest'); |
| 58 Expect.throws(() => NativeProcess.startDetached(nonExecFile.path, null), | 58 Expect.throws(() => NativeProcess.startDetached(nonExecFile.path, null), |
| 59 (e) => e == "Failed to start process from path '${nonExecFile.path}'. " | 59 (e) => e == "Failed to start process from path '${nonExecFile.path}'. " |
| 60 "Got errno 13"); | 60 "Got errno 13"); |
| 61 File.delete(nonExecFile.path); | 61 File.delete(nonExecFile.path); |
| 62 } | 62 } |
| OLD | NEW |