mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 20:51:19 +00:00
f1af54b3b0
TEST=socket_source_address_test.dart Bug: 47447 Change-Id: I7e70393c0edb4c5d51edcafe2568f95f8ceb85c2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/217448 Reviewed-by: Alexander Aprelev <aam@google.com> Commit-Queue: Brian Quinlan <bquinlan@google.com>
23 lines
701 B
Dart
23 lines
701 B
Dart
// Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// @dart = 2.9
|
|
import 'dart:io';
|
|
|
|
import 'test_utils.dart' show withTempDir;
|
|
import 'unix_socket_test.dart' show testListenCloseListenClose;
|
|
|
|
void main() async {
|
|
if (!Platform.isMacOS && !Platform.isLinux && !Platform.isAndroid) {
|
|
return;
|
|
}
|
|
final futures = <Future>[];
|
|
for (int i = 0; i < 10; ++i) {
|
|
futures.add(withTempDir('unix_socket_test', (Directory dir) async {
|
|
await testListenCloseListenClose('${dir.path}');
|
|
}));
|
|
}
|
|
await Future.wait(futures);
|
|
}
|