| Index: tests/standalone/src/DirectoryTest.dart
|
| diff --git a/tests/standalone/src/DirectoryTest.dart b/tests/standalone/src/DirectoryTest.dart
|
| index 0db2dccd5a45f4b0d0eca064a4040517409443ef..9ebe922064d3180a1f568c2a3130c8ea3e0c9f3a 100644
|
| --- a/tests/standalone/src/DirectoryTest.dart
|
| +++ b/tests/standalone/src/DirectoryTest.dart
|
| @@ -264,7 +264,13 @@ String illegalTempDirectoryLocation() {
|
| testCreateTempErrorSync() {
|
| var location = illegalTempDirectoryLocation();
|
| if (location != null) {
|
| - Expect.throws(new Directory(location).createTempSync());
|
| + bool exception = false;
|
| + try {
|
| + new Directory(location).createTempSync();
|
| + } catch(DirectoryException e) {
|
| + exception = true;
|
| + }
|
| + Expect.isTrue(exception);
|
| }
|
| }
|
|
|
|
|