dart-sdk/tests/standalone
James Lin 48ac398f11 Fix Directory.current setter compatibility with IOOverrides
The `Directory.current` setter has a `dynamic` parameter so that it
can accept either `String` or `Directory` arguments. (This is
asymmetric with the getter, which always returns a `Directory`.)

The corresponding `IOOverrides` callback, however, assumes that the
argument is always a `String`, and `Directory.current` passed its
`dynamic` argument through unchanged.  Consequently, overriding
the `Directory.current` setter would result in a `TypeError` when
setting `Directory.current` to a `Directory` object.

Changing `IOOverrides.setCurrentDirectory` to use a `dynamic`
parameter would be a breaking change, so instead make the
`Directory.current` setter check the argument's runtime type before
passing it along.

Bug: https://github.com/dart-lang/sdk/issues/52140
Change-Id: I3c5bba6b442b314c798bd7949dfeb5eb6251dc6e
CoreLibraryReviewExempt: No API changes and VM-only.
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/336604
Reviewed-by: Brian Quinlan <bquinlan@google.com>
Reviewed-by: Lasse Nielsen <lrn@google.com>
Auto-Submit: James Lin <jamesdlin@gmail.com>
Commit-Queue: Brian Quinlan <bquinlan@google.com>
2023-12-18 20:23:21 +00:00
..
deferred Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
http_launch_data Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
io Fix Directory.current setter compatibility with IOOverrides 2023-12-18 20:23:21 +00:00
package [gardening] Make standalone/package/package_isolate_test a no-op in AOT. 2023-08-11 21:06:10 +00:00
stack_trace Migrate tests to language/stack_trace. 2020-05-07 13:47:57 +00:00
array_bounds_check_generalization_test.dart
assert_assignable_canon_test.dart
byte_array_view_optimized_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
bytedata_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
check_class_cha_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
check_for_aot_snapshot_jit_test.dart [3.0 alpha][VM/Runtime] - Flip flag to make strong null safety the default. 2022-12-06 04:04:23 +00:00
check_null_cha_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
constant_left_shift_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
deferred_transitive_import_error_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
deny_listed_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
deoptimization_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
double_hash_distribution_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
double_smi_comparison_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
double_temp_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
double_to_int_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
dwarf_stack_trace_invisible_functions_test.dart [infra] Prevent VM AOT tests from poluting SDK source. 2023-05-03 13:24:39 +00:00
dwarf_stack_trace_obfuscate_test.dart [infra] Prevent VM AOT tests from poluting SDK source. 2023-05-03 13:24:39 +00:00
dwarf_stack_trace_test.dart [infra] Prevent VM AOT tests from poluting SDK source. 2023-05-03 13:24:39 +00:00
env_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
float_array_static_test.dart Migrate standalone tests off @compile-error. 2023-04-19 14:17:39 +00:00
float_array_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
gn_py_test.dart Reland "[build] Handle cases for dart_target_arch != target_arch and target_cpu != host_cpu." 2023-03-22 14:57:27 +00:00
http_launch_test.dart [VM / Tests] Fix tests to use '-verbosity=warning' 2021-01-27 19:06:39 +00:00
int_array_deopt.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
int_array_load_elimination_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
int_array_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
int_list_test.dart [tests] Avoid small --optimization-counter-threshold in tests 2022-10-10 21:04:18 +00:00
lazy_async_stack_test.dart [vm] Cleanup --lazy-async-stacks VM option 2022-06-10 13:41:24 +00:00
left_shift_bit_and_op_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
link_natives_lazily_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
map_insert_remove_oom_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
medium_integer_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
no_allow_absolute_addresses_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
no_lazy_dispatchers_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
no_profiler_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
no_such_method_error_with_invocation_test.dart Allow NoSuchMethodError.withInvocation to accept any Invocation. 2020-05-05 08:10:13 +00:00
no_support_ast_printer_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
no_support_debugger_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
no_support_disassembler_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
no_support_il_printer_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
no_support_service_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
no_support_timeline_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
number_identity_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
oom_error_stacktrace_test.dart [3.0 alpha] Remove deprecated dart:core List() constructor. 2022-12-15 11:36:22 +00:00
pair_location_remapping_test.dart Spelling tests 2022-12-19 12:56:47 +00:00
pie_test.dart Reland "[build, vm] Access TLS with less code." 2023-03-02 23:07:16 +00:00
pow_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
priority_queue_stress_test.dart Remove uses of : as default value separator in some tests/ directories. 2022-09-07 14:49:17 +00:00
regress31114_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
regress_25335_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
regress_26031_test.dart [vm/concurrency] Remove --(no-)enable-isolate-groups flag usage in tests 2021-11-04 18:57:21 +00:00
regress_28854_1_test.dart [vm/concurrency] Remove --(no-)enable-isolate-groups flag usage in tests 2021-11-04 18:57:21 +00:00
regress_28854_2_test.dart [vm/concurrency] Remove --(no-)enable-isolate-groups flag usage in tests 2021-11-04 18:57:21 +00:00
regress_29350_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
regress_29695_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
regress_41329_absolute_test.dart Skip regress_41329 tests on precompiled runtimes 2020-09-30 16:18:34 +00:00
regress_41329_relative_test.dart Reland "[ VM / DartDev ] Launch DartDev in an isolate within a single main Dart process" 2020-07-21 16:23:18 +00:00
regress_42092_script.dart [ DartDev ] Ignore SIGINT in DartDev process 2020-07-06 03:02:00 +00:00
regress_42092_test.dart [ VM ] Add delay between SIGINTs to fix flakiness of regress_42092_test 2021-06-29 01:36:32 +00:00
regress_45347.dart [vm/lib] Fix for https://github.com/dart-lang/sdk/issues/45347 2023-10-11 21:51:02 +00:00
regress_52691_test.dart [vm/runtime] - Fix RegExp exception messages (issue 52691) 2023-07-06 21:10:28 +00:00
regress_52715_test.dart [gardening] Don't attempt to measure RSS under sanitizers or with reload. 2023-06-29 19:39:05 +00:00
slowpath_safepoints_test.dart [tests] Avoid small --optimization-counter-threshold in tests 2022-10-10 21:04:18 +00:00
standalone.status Adds tests and documentation for print line ending behavior 2023-10-17 22:10:38 +00:00
standalone_analyzer.status
standalone_kernel.status [gardening] Remove Crash entries for standalone/io tests that actually pass. 2023-08-11 17:27:29 +00:00
standalone_precompiled.status [VM/io] - Reland : Set correct file type for files backing unix domain sockets 2022-05-15 00:40:07 +00:00
standalone_vm.status [test] Remove ARM64-specific status entries. 2023-10-09 19:30:29 +00:00
string_overflow_test.dart Avoid crashes in string concatenation 32-bit integer overflow test 2023-10-27 12:36:29 +00:00
typed_array_int64_uint64_test.dart [vm/concurrency] Remove --(no-)enable-isolate-groups flag usage in tests 2021-11-04 18:57:21 +00:00
typed_array_test.dart [vm/concurrency] Remove --(no-)enable-isolate-groups flag usage in tests 2021-11-04 18:57:21 +00:00
typed_data_isolate_test.dart [vm/concurrency] Remove --(no-)enable-isolate-groups flag usage in tests 2021-11-04 18:57:21 +00:00
typed_data_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
typed_data_view_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
unboxed_int_converter_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
verbose_gc_to_bmu_script.dart [3.0 alpha] Remove deprecated dart:core List() constructor. 2022-12-15 11:36:22 +00:00
verbose_gc_to_bmu_test.dart Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00