rust/tests/run-pass
bors ffd03b3caa Auto merge of #1418 - divergentdave:file-sync, r=RalfJung
Add file sync shims

This PR adds shim implementations for these related file syncing functions.
* `fsync`, for POSIX targets, backed by `File::sync_all()`
* `fdatasync`, for POSIX targets, backed by `File::sync_data()`
* `fcntl` with command `F_FULLFSYNC`, for macOS targets, backed by `File::sync_all()`
* `sync_file_range`, for Linux targets, backed by `File::sync_data()`
2020-06-09 08:48:40 +00:00
..
concurrency rustup, and adjust timing tests 2020-06-03 09:40:21 +02:00
panic memory reachable through globals is not a leak any more; adjust for better memory dumping 2020-04-07 19:03:41 +02: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
args.rs
args.stdout
arrays.rs test const-generic Vec::from(array) 2020-03-30 10:23:16 +02:00
arrays.stdout
associated-const.rs
assume_bug.rs
async-fn.rs use Wake trait for async-fn driver 2020-03-23 23:53:54 +01:00
atomic.rs Add compiler fences to test 2020-01-25 13:48:26 -06:00
bad_substs.rs
binops.rs
bitop-beyond-alignment.rs avoid test-wide allowance of unused/dead code 2020-04-16 09:25:12 +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
calls.rs
cast_fn_ptr_unsafe.rs
cast_fn_ptr.rs
cast-rfc0401-vtable-kinds.rs
catch.rs
catch.stdout
char.rs
closure-drop.rs
closure-field-ty.rs
closures.rs
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
const-vec-of-fns.rs
constants.rs
current_dir.rs Windows shims for GetCurrentDirectoryW/SetCurrentDirectoryW 2020-03-29 11:30:08 -04:00
deriving-associated-types.rs
disable-alignment-check.rs add option to disable alignment checks 2020-04-13 17:58:03 +02:00
drop_empty_slice.rs
drop_on_array_elements.rs
drop_on_fat_ptr_array_elements.rs
drop_on_zst_array_elements.rs
drop_through_owned_slice.rs
drop_through_trait_object_rc.rs
drop_through_trait_object.rs
dst-field-align.rs avoid test-wide allowance of unused/dead code 2020-04-16 09:25:12 +02:00
dst-irrefutable-bind.rs
dst-raw.rs
dst-struct-sole.rs
dst-struct.rs
dyn-lcsit.rs add interesting unsizing test 2020-05-24 12:03:06 +02:00
dyn-traits.rs
enum-nullable-const-null-with-fields.rs
enums.rs
env-exclude.rs remove or update 'ignore-windows' annotations in some tests 2020-03-27 14:18:19 -04:00
env-without-isolation.rs remove or update 'ignore-windows' annotations in some tests 2020-03-27 14:18:19 -04:00
env.rs Windows shims for env var emulation 2020-03-27 08:43:08 -04:00
env.stdout fix env update, and expand test 2020-03-06 08:21:53 -05:00
exit.rs
extern_types.rs
fat_ptr.rs
float_fast_math.rs smoketest f32 fast-math intrinsics 2020-04-11 11:37:26 +02:00
float.rs copy some float cast tests from rustc 2020-05-06 22:46:42 +02:00
foreign-fn-linkname.rs avoid test-wide allowance of unused/dead code 2020-04-16 09:25:12 +02:00
format.rs
format.stdout
from_utf8.rs
fs.rs Finish fixing Windows host support 2020-06-06 16:54:13 +00:00
function_pointers.rs
generator.rs try even harder to catch invalid generator fields 2020-03-03 15:02:06 +01:00
hashmap.rs bump Rust; HashMap should now work on macOS even with isolation 2020-03-23 10:34:15 +01:00
heap_allocator.rs rustup for AllocRef changes 2020-04-02 11:45:17 +02:00
heap.rs adjust for changed allocation strategy 2020-05-20 00:00:35 +02:00
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
intrinsics-integer.rs
intrinsics-math.rs
intrinsics.rs test discriminant_value intrinsic 2020-05-23 16:30:50 +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
issue-3794.stdout
issue-5917.rs
issue-15063.rs avoid test-wide allowance of unused/dead code 2020-04-16 09:25:12 +02:00
issue-15080.rs slice_patterns is stable now 2020-01-19 10:03:18 -06:00
issue-15523-big.rs
issue-17877.rs slice_patterns is stable now 2020-01-19 10:03:18 -06:00
issue-20575.rs
issue-23261.rs
issue-26709.rs
issue-27901.rs
issue-29746.rs
issue-30530.rs
issue-31267-additional.rs
issue-33387.rs
issue-34571.rs
issue-35815.rs avoid test-wide allowance of unused/dead code 2020-04-16 09:25:12 +02:00
issue-36278-prefix-nesting.rs
issue-53728.rs avoid test-wide allowance of unused/dead code 2020-04-16 09:25:12 +02:00
issue-miri-133.rs
issue-miri-184.rs
issue-miri-1075.rs
iter.rs
last-use-in-cap-clause.rs
leak-in-static.rs memory reachable through globals is not a leak any more; adjust for better memory dumping 2020-04-07 19:03:41 +02:00
libc.rs Finish fixing Windows host support 2020-06-06 16:54:13 +00:00
linked-list.rs
linux-getrandom-without-isolation.rs
linux-getrandom.rs
loop-break-value.rs
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
many_shr_bor.rs
match_slice.rs
memchr.rs platform -> target 2020-03-22 08:55:39 +01:00
memleak_ignored.rs
move-arg-2-unique.rs
move-arg-3-unique.rs
move-uninit-primval.rs rename tests: undefined -> uninit 2020-04-27 12:32:03 +02:00
mpsc.rs
multi_arg_closure.rs
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
packed_struct.rs Stacked Borrows: alignment does not matter 2020-04-22 23:32:19 +02:00
pointers.rs finally stop using min/max_value and the integer modules 2020-03-04 13:01:06 +01:00
products.rs
ptr_int_casts.rs consolidate ptr tests in fewer files 2020-04-16 09:06:21 +02:00
ptr_offset.rs consolidate ptr tests in fewer files 2020-04-16 09:06:21 +02:00
ptr_raw.rs consolidate ptr tests in fewer files 2020-04-16 09:06:21 +02:00
rc.rs rustup (and account for stabilization) 2020-05-30 09:23:25 +02:00
recursive_static.rs
reentrant-println.rs Update comments, rearrange code 2020-04-05 12:09:31 -05:00
reentrant-println.stdout Add test that exercises ReentrantMutex 2020-04-05 10:04:33 -05:00
regions-lifetime-nonfree-late-bound.rs
regions-mock-trans.rs avoid test-wide allowance of unused/dead code 2020-04-16 09:25:12 +02:00
rfc1623.rs avoid test-wide allowance of unused/dead code 2020-04-16 09:25:12 +02:00
rust-lang-org.rs
send-is-not-static-par-for.rs
sendable-class.rs
simd-intrinsic-generic-elements.rs
slices.rs
small_enum_size_bug.rs avoid test-wide allowance of unused/dead code 2020-04-16 09:25:12 +02:00
specialization.rs
static_memory_modification.rs
static_mut.rs avoid test-wide allowance of unused/dead code 2020-04-16 09:25:12 +02:00
strings.rs
subslice_array.rs slice_patterns is stable now 2020-01-19 10:03:18 -06:00
sums.rs
sync_singlethread.rs rename single-threaded sync test 2020-05-04 09:45:15 +02:00
tag-align-dyn-u64.rs avoid test-wide allowance of unused/dead code 2020-04-16 09:25:12 +02:00
thread-local.rs
time.rs tighten Instance sanity check 2020-04-15 13:13:17 +02:00
too-large-primval-write-problem.rs
track-caller-attribute.rs test track_caller with fn ptrs 2020-01-28 22:55:07 +01:00
transmute_fat2.rs explain what happens in a test 2020-05-03 12:43:38 +02:00
transmute_fat2.stderr explain what happens in a test 2020-05-03 12:43:38 +02: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
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
union.rs avoid test-wide allowance of unused/dead code 2020-04-16 09:25:12 +02:00
unops.rs
unsized-tuple-impls.rs
validation_lifetime_resolution.rs
vec-matching-fold.rs slice_patterns is stable now 2020-01-19 10:03:18 -06:00
vec.rs also test push_str ptr stability (the original report) 2020-04-05 19:13:52 +02:00
vecdeque.rs
vecdeque.stdout
volatile.rs
without-validation.rs
write-bytes.rs
wtf8.rs test WTF8 encoding corner cases 2020-06-01 01:12:31 +02:00
zero-sized-binary-heap-push.rs
zst_box.rs
zst_variant_drop.rs
zst.rs