Fixes #1232. Expect FileStat.type to return underlying object for non-Windows OS's
diff --git a/LibTest/io/Link/stat_A01_t01.dart b/LibTest/io/Link/stat_A01_t01.dart
index 45933b9..2a49ff1 100644
--- a/LibTest/io/Link/stat_A01_t01.dart
+++ b/LibTest/io/Link/stat_A01_t01.dart
@@ -27,7 +27,11 @@
Link link = getTempLinkSync(parent: sandbox);
asyncStart();
await link.stat().then((FileStat fs) {
- Expect.equals(FileSystemEntityType.link, fs.type);
+ if (Platform.isWindows) {
+ Expect.equals(FileSystemEntityType.link, fs.type);
+ } else {
+ Expect.equals(FileSystemEntityType.directory, fs.type);
+ }
}).then((_) {
asyncEnd();
});