Index: runtime/tests/vm/dart/hello_fuchsia_test.dart |
diff --git a/runtime/tests/vm/dart/hello_fuchsia_test.dart b/runtime/tests/vm/dart/hello_fuchsia_test.dart |
index cc5363ad856ddef6c813413224962b8bbc1b9857..8ca65633261175daffd3517fb6db4f17049b119e 100644 |
--- a/runtime/tests/vm/dart/hello_fuchsia_test.dart |
+++ b/runtime/tests/vm/dart/hello_fuchsia_test.dart |
@@ -486,6 +486,15 @@ bool testFileOpenDirectoryFails() { |
} |
} |
+ |
+Future testListInterfaces() async { |
+ List<NetworkInterface> interfaces = await NetworkInterface.list(); |
+ print('Found ${interfaces.length} interfaces:'); |
+ for (var iface in interfaces) { |
+ print('\t$iface'); |
+ } |
+} |
+ |
main(List<String> args) async { |
if (args.length >= 1) { |
if (args[0] == "infinite-loop") { |
@@ -559,5 +568,9 @@ main(List<String> args) async { |
print("testFileOpenDirectoryFails FAILED"); |
} |
+ print('testListInterfaces'); |
+ await testListInterfaces(); |
+ print('testListInterfaces done'); |
+ |
print("Goodbyte, Fuchsia!"); |
} |