1
0
mirror of https://github.com/dart-lang/sdk synced 2024-07-08 12:06:26 +00:00
dart-sdk/tests
Daco Harkes f524ec74ce [vm/ffi] FfiNative process lookup
This CL makes `FfiNative`s use `DynamicLibrary.process()` lookup if
resolving with the resolver set by `Dart_SetFfiNativeResolver` fails.

Also moves the implementation over from ffi.cc to
ffi_dynamic_library.cc so the implementation can be shared with
`DynamicLibrary.process()`.

Moves the implementation behind non-simulator and non-precompiler.
However, the implementation is tested in vm/cc tests which are in
precompiler mode. So enables the implementation if TESTED is defined.

This CL massages the build files so that TESTED is properly
defined when compiling the runtime for the vm/cc tests, and links
the ole32 symbols on windows for vm/cc tests.

(And some unrelated small cleanup changes here and there.)

TEST=tests/ffi/native_assets/process_test.dart

Change-Id: I25395d381db1d9b4b7a5759171a798a1140a6140
Cq-Include-Trybots: luci.dart.try:vm-kernel-win-debug-x64c-try,vm-kernel-win-debug-x64-try,vm-kernel-nnbd-win-debug-x64-try,vm-kernel-precomp-win-debug-x64c-try,dart-sdk-win-try,vm-kernel-win-release-x64-try,vm-kernel-win-release-ia32-try,vm-kernel-precomp-win-product-x64-try,vm-kernel-reload-linux-debug-x64-try,vm-kernel-reload-rollback-linux-debug-x64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/264982
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
2022-10-25 10:57:07 +00:00
..
co19 [co19] RawDatargamSocket tests enabled 2022-10-11 02:42:00 +00:00
co19_2 [co19] RawDatargamSocket tests enabled 2022-10-11 02:42:00 +00:00
corelib DateTime copyWith extension 2022-10-20 10:50:25 +00:00
corelib_2 DateTime copyWith extension 2022-10-20 10:50:25 +00:00
dartdevc Revert "Refactor _Future." 2022-06-09 16:51:55 +00:00
dartdevc_2 [ddc] Ensure status file entries are consistent 2022-08-08 17:23:50 +00:00
ffi [vm/ffi] FfiNative process lookup 2022-10-25 10:57:07 +00:00
ffi_2 [vm] Fill in ArgumentValue.invalidObject when objects are rejected in isolate messages. 2022-10-24 17:49:29 +00:00
language [vm] Better implementation of hashCode function. 2022-10-20 20:31:20 +00:00
language_2 [vm] Better implementation of hashCode function. 2022-10-20 20:31:20 +00:00
lib [pkg:js] Refactor createStaticInteropMock tests to account for new changes 2022-10-24 17:37:09 +00:00
lib_2 [pkg:js] Refactor createStaticInteropMock tests to account for new changes 2022-10-24 17:37:09 +00:00
modular [pkg:js] Disallow staticInterop generative constructors 2022-10-18 17:47:29 +00:00
standalone [testing] Remove --compiler=none from test.py 2022-10-19 08:09:58 +00:00
standalone_2 [testing] Remove --compiler=none from test.py 2022-10-19 08:09:58 +00:00
web [testing] Remove --compiler=none from test.py 2022-10-19 08:09:58 +00:00
web_2 [testing] Remove --compiler=none from test.py 2022-10-19 08:09:58 +00:00
legacy_status_dart2js.csv [dart2js] Remove obsolete unittests. 2020-05-12 17:16:39 +00:00
OWNERS [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
README.md

This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.