dart-sdk/tests/standalone_2/io/unix_socket_regress_46634_test.dart
Brian Quinlan f1af54b3b0 Fix a bug where an abort would occur if the sourceAddress did not match the host address type.
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>
2021-10-20 22:18:25 +00:00

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);
}