rust/tests/run-pass
bors 574d81ce79 Auto merge of #1208 - christianpoveda:environ-shim, r=RalfJung
Environ shim

Remake of https://github.com/rust-lang/miri/pull/1147. There are three main problems with this:

1. For some reason `update_environ` is not updating `environ` when `setenv` or `unsetenv` are called. Even then it works during initialization.
2. I am not deallocating the old array with the variables in `update_environ`.
3. I had to store the `environ` place into `MemoryExtra` as a field to update it. I was thinking about changing `extern_statics` to store places instead of `AllocID`s to avoid this.

@RalfJung
2020-03-08 15:39:43 +00:00
..
panic finally stop using min/max_value and the integer modules 2020-03-04 13:01:06 +01:00
stacked-borrows add test for layout optimizations 2020-02-12 22:04:58 +01:00
align_offset.rs finally stop using min/max_value and the integer modules 2020-03-04 13:01:06 +01:00
align_offset.stdout more align_offset tests 2019-09-29 11:43:50 -04:00
args.rs
args.stdout
arrays.rs test arrray try_from (interesting const generic usage) 2019-08-20 16:11:03 +02:00
arrays.stdout test some const-generic-using methods 2019-07-13 10:25:04 +02:00
associated-const.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
assume_bug.rs
async-fn.rs the never type got de-stabilized again; adjust tests 2019-12-15 12:23:43 +01:00
atomic.rs Add compiler fences to test 2020-01-25 13:48:26 -06:00
bad_substs.rs
binops.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
bitop-beyond-alignment.rs explain better what is non-deterministic here 2019-07-24 08:57:05 +02:00
bools.rs
box-pair-to-vec.rs
box-pair-to-vec.stdout
btreemap.rs
c_enums.rs remove no-longer-needed allow(const_err) 2020-01-06 11:38:35 +01:00
calloc.rs Fix calloc test 2019-04-08 01:26:52 +02:00
calls.rs
cast_fn_ptr_unsafe.rs
cast_fn_ptr.rs
cast-rfc0401-vtable-kinds.rs update for rustc warning about missing dyn 2019-05-30 10:58:30 +02:00
catch.rs
catch.stdout
char.rs
clock.rs expand clock and fs tests a bit 2020-03-06 14:32:46 +01:00
closure-drop.rs
closure-field-ty.rs
closures.rs move blosure tests to closures file; test Box<dyn> a bit more 2019-11-07 09:14:23 +01:00
coerce_non_capture_closure_to_fn_ptr.rs remove some no-longer-needed allow(const_err) 2020-02-21 11:05:56 +01:00
coercions.rs rename some more tests 2019-11-25 15:08:47 +01:00
const-vec-of-fns.rs Various cosmetic improvements. 2019-02-26 18:37:46 +00:00
constants.rs
current_dir.rs Correct style of comments 2019-10-11 04:17:43 -05:00
deriving-associated-types.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
drop_empty_slice.rs
drop_on_array_elements.rs rename call_drop_ tests to drop_ 2019-11-07 08:56:11 +01:00
drop_on_fat_ptr_array_elements.rs rename call_drop_ tests to drop_ 2019-11-07 08:56:11 +01:00
drop_on_zst_array_elements.rs rename call_drop_ tests to drop_ 2019-11-07 08:56:11 +01:00
drop_through_owned_slice.rs rename call_drop_ tests to drop_ 2019-11-07 08:56:11 +01:00
drop_through_trait_object_rc.rs rename call_drop_ tests to drop_ 2019-11-07 08:56:11 +01:00
drop_through_trait_object.rs rename call_drop_ tests to drop_ 2019-11-07 08:56:11 +01:00
dst-field-align.rs update for rustc warning about missing dyn 2019-05-30 10:58:30 +02:00
dst-irrefutable-bind.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
dst-raw.rs update for rustc warning about missing dyn 2019-05-30 10:58:30 +02:00
dst-struct-sole.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
dst-struct.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
dyn-traits.rs also test Box<self> receiver 2019-11-07 09:17:40 +01:00
enum-nullable-const-null-with-fields.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
enums.rs add another test case 2019-09-20 08:53:35 +02:00
env-exclude.rs Add env exclusion test 2019-08-28 17:57:41 -05:00
env-without-isolation.rs test host randomness access 2019-08-23 23:30:23 +02:00
env.rs fix env update, and expand test 2020-03-06 08:21:53 -05:00
env.stdout fix env update, and expand test 2020-03-06 08:21:53 -05:00
exit.rs implement exit 2019-04-21 12:36:17 +02:00
extern_types.rs
fat_ptr.rs rename some more tests 2019-11-25 15:08:47 +01:00
float_fast_math.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
floats.rs Implments intrinsics::copysignf32 and intrinsics::copysignf64. 2019-11-13 17:41:09 +08:00
foreign-fn-linkname.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
format.rs
format.stdout
from_utf8.rs
fs.rs expand clock and fs tests a bit 2020-03-06 14:32:46 +01:00
function_pointers.rs
generator.rs try even harder to catch invalid generator fields 2020-03-03 15:02:06 +01:00
hashmap.rs fix imports 2019-12-31 12:10:52 +01:00
heap_allocator.rs fix allocator tests 2020-03-04 10:19:35 +01:00
heap.rs
hello.rs
hello.stdout
integer-ops.rs finally stop using min/max_value and the integer modules 2020-03-04 13:01:06 +01:00
intptrcast.rs review failing compile-fail tests 2019-07-23 23:25:06 +02:00
intrinsics-integer.rs implement and test unchecked_{add,sub,mul} intrinsics 2019-06-16 11:10:33 +02:00
intrinsics-math.rs Add acos, asin, and atan foreign functions 2019-11-21 17:33:30 -05:00
intrinsics.rs bump Rust 2019-07-26 10:14:44 +02:00
ints.rs finally stop using min/max_value and the integer modules 2020-03-04 13:01:06 +01:00
issue-3794.rs update for rustc warning about missing dyn 2019-05-30 10:58:30 +02:00
issue-3794.stdout
issue-5917.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
issue-15063.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
issue-15080.rs slice_patterns is stable now 2020-01-19 10:03:18 -06:00
issue-15523-big.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
issue-17877.rs slice_patterns is stable now 2020-01-19 10:03:18 -06:00
issue-20575.rs update for rustc warning about missing dyn 2019-05-30 10:58:30 +02:00
issue-23261.rs update for rustc warning about missing dyn 2019-05-30 10:58:30 +02:00
issue-26709.rs update for rustc warning about missing dyn 2019-05-30 10:58:30 +02:00
issue-27901.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
issue-29746.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
issue-30530.rs Fix unused_must_use inside Box 2019-06-30 15:31:14 +01:00
issue-31267-additional.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
issue-33387.rs update for rustc warning about missing dyn 2019-05-30 10:58:30 +02:00
issue-34571.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
issue-35815.rs update for rustc warning about missing dyn 2019-05-30 10:58:30 +02:00
issue-36278-prefix-nesting.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
issue-53728.rs
issue-miri-133.rs rename miri-issue to issue-miri for grouping 2019-11-14 10:16:44 +01:00
issue-miri-184.rs
issue-miri-1075.rs test diverging closure fn ptr coercion 2019-12-02 15:42:33 +01:00
iter.rs fix into_iter usage 2019-11-08 12:43:26 +01:00
last-use-in-cap-clause.rs update for rustc warning about missing dyn 2019-05-30 10:58:30 +02:00
libc.rs Conditional compilation fix 2020-01-28 20:39:06 -06:00
linked-list.rs add LinkedList test and mention the bug Miri found there 2019-04-19 23:08:24 +02:00
linux-getrandom-without-isolation.rs test host randomness access 2019-08-23 23:30:23 +02:00
linux-getrandom.rs Improve formatting 2019-08-04 16:44:32 -04:00
loop-break-value.rs the never type got de-stabilized again; adjust tests 2019-12-15 12:23:43 +01:00
loops.rs
main_fn.rs
main_result.rs support main functions with Result return type 2019-12-23 17:45:23 +01:00
malloc.rs update miri-seed handling for run-pass test suite 2019-07-23 21:53:47 +02:00
many_shr_bor.rs
match_slice.rs
memchr.rs
memleak_ignored.rs add flag to ignore memory leaks 2019-12-07 13:44:48 +01:00
move-arg-2-unique.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
move-arg-3-unique.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
move-undef-primval.rs fix test using mem::uninitialized 2019-07-06 09:33:22 +02:00
mpsc.rs force pointers before reborrowing; fixes cargo miri test suite 2019-07-10 14:36:56 +02:00
multi_arg_closure.rs update for rustc warning about missing dyn 2019-05-30 10:58:30 +02:00
negative_discriminant.rs
observed_local_mut.rs add an option to disable Stacked Borrows 2020-02-24 16:22:02 +01:00
option_box_transmute_ptr.rs
option_eq.rs
overloaded-calls-simple.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
packed_static.rs
packed_struct.rs
pointers.rs finally stop using min/max_value and the integer modules 2020-03-04 13:01:06 +01:00
products.rs
ptr_arith_offset_overflow.rs finally stop using min/max_value and the integer modules 2020-03-04 13:01:06 +01:00
ptr_arith_offset.rs make run-pass tests pass. tweak how we remove barriers. 2019-04-17 16:02:57 +02:00
ptr_int_casts.rs finally stop using min/max_value and the integer modules 2020-03-04 13:01:06 +01:00
ptr_int_ops.rs
ptr_offset_from.rs test offset_from 2019-11-05 20:17:35 +01:00
ptr_offset.rs now we can also enable the ptr_int_cast test again 2019-07-10 14:36:56 +02:00
raw.rs
rc.rs test some new uninit APIs 2019-08-18 11:34:09 +02:00
recursive_static.rs
regions-lifetime-nonfree-late-bound.rs update for rustc warning about missing dyn 2019-05-30 10:58:30 +02:00
regions-mock-trans.rs make run-pass tests pass. tweak how we remove barriers. 2019-04-17 16:02:57 +02:00
rfc1623.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
rust-lang-org.rs
send-is-not-static-par-for.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
sendable-class.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
simd-intrinsic-generic-elements.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
slices.rs test some new uninit APIs 2019-08-18 11:34:09 +02:00
small_enum_size_bug.rs
specialization.rs
static_memory_modification.rs
static_mut.rs
strings.rs
subslice_array.rs slice_patterns is stable now 2020-01-19 10:03:18 -06:00
sums.rs
sync.rs improve comment 2019-06-30 16:45:41 +02:00
tag-align-dyn-u64.rs
thread-local.rs fix existing tests 2019-06-02 22:16:02 +02:00
too-large-primval-write-problem.rs Various cosmetic improvements. 2019-02-26 18:37:46 +00:00
track-caller-attribute.rs test track_caller with fn ptrs 2020-01-28 22:55:07 +01:00
transmute_fat.rs add an option to disable Stacked Borrows 2020-02-24 16:22:02 +01:00
trivial.rs
try-operator-custom.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
tuple_like_enum_variant_constructor_pointer_opt.rs
tuple_like_enum_variant_constructor_struct_pointer_opt.rs
tuple_like_enum_variant_constructor.rs
tuple_like_struct_constructor.rs
u128.rs finally stop using min/max_value and the integer modules 2020-03-04 13:01:06 +01:00
union-overwrite.rs rustup: fix for write_bytes and new union rules 2019-10-22 10:13:11 +02:00
union.rs
unops.rs
unsized-tuple-impls.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
validation_lifetime_resolution.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
vec-matching-fold.rs slice_patterns is stable now 2020-01-19 10:03:18 -06:00
vecdeque.rs
vecdeque.stdout
vecs.rs be pragmatic about ptr-int comparisons, for now 2019-04-16 17:47:37 +02:00
volatile.rs
without-validation.rs test for no-validation-only failure 2019-06-04 13:21:04 +02:00
write-bytes.rs
zero-sized-binary-heap-push.rs Removed copyright notices. 2019-02-26 18:37:45 +00:00
zst_box.rs
zst_variant_drop.rs
zst.rs adjust for refactored memory pointer checks 2019-06-23 20:19:26 +02:00