rust/src/libstd
Mazdak Farrokhzad 2becb62166
Rollup merge of #63109 - alexcrichton:disable-windows-fs-test, r=sfackler
std: Fix a failing `fs` test on Windows

In testing 4-core machines on Azure the `realpath_works_tricky` test in
the standard library is failing with "The directory name is invalid". In
attempting to debug this test I was able to reproduce the failure
locally on my machine, and after inspecing the test it I believe is
exploiting Unix-specific behavior that seems to only sometimes work on
Windows. Specifically the test basically executes:

    mkdir -p a/b
    mkdir -p a/d
    touch a/f
    ln -s a/b/c ../d/e
    ln -s a/d/e ../f

and then asserts that `canonicalize("a/b/c")` and
`canonicalize("a/d/e")` are equivalent to `a/f`. On Windows however the
first symlink is a "directory symlink" and the second is a file symlink.
In both cases, though, they're pointing to files. This means that for
whatever reason locally and on the 4-core environment the call to
`canonicalize` is failing. On Azure today it seems to be passing, and
I'm not entirely sure why. I'm sort of presuming that there's some sort
of internals going on here where there's some global Windows setting
which makes symlinks behavior more unix-like and ignore the directory
hint.

In any case this should keep the test working and also fixes the test
locally for me. It's also worth pointing out that this test was made Windows compatible in https://github.com/rust-lang/rust/pull/31360, a pretty ancient PR at this point.
2019-07-30 05:37:44 +02:00
..
collections Test that maplike FromIter satisfies uniqueness 2019-07-16 02:34:00 +00:00
ffi Auto merge of #62610 - Stargateur:fix-miri-error-cstring-into_inner, r=RalfJung 2019-07-14 13:52:40 +00:00
io Rollup merge of #62806 - mati865:clippy, r=TimNN 2019-07-28 11:11:08 +02:00
net Fix typo in src/libstd/net/udp.rs doc comment 2019-07-18 21:03:56 +02:00
os Rollup merge of #60938 - jonas-schievink:doc-include-paths, r=petrochenkov 2019-07-25 23:20:51 +02:00
prelude Introduce built-in macros through libcore 2019-07-26 13:09:54 +03:00
sync Auto merge of #62990 - Centril:rollup-k9n0hvs, r=Centril 2019-07-25 22:34:23 +00:00
sys vxworks: Remove Linux-specific comments. 2019-07-28 23:09:21 -07:00
sys_common add support for hexagon-unknown-linux-musl 2019-07-22 09:44:58 -05:00
tests libstd => 2018 2019-02-28 04:06:15 +09:00
thread Remove run-pass test suites 2019-07-27 18:56:17 +03:00
alloc.rs Fix intra-doc link resolution failure on re-exporting libstd 2019-05-04 23:48:57 +09:00
ascii.rs Remove licenses 2018-12-25 21:08:33 -07:00
build.rs Remove lint annotations in specific crates that are already enforced by rustbuild 2019-07-28 18:46:24 +03:00
Cargo.toml std: Use native #[thread_local] TLS on wasm 2019-07-25 11:17:07 -07:00
env.rs add support for hexagon-unknown-linux-musl 2019-07-22 09:44:58 -05:00
error.rs Introduce built-in macros through libcore 2019-07-26 13:09:54 +03:00
f32.rs Stablize Euclidean Modulo (feature euclidean_division) 2019-07-07 12:16:13 +08:00
f64.rs Stablize Euclidean Modulo (feature euclidean_division) 2019-07-07 12:16:13 +08:00
fs.rs std: Fix a failing fs test on Windows 2019-07-29 10:53:47 -07:00
future.rs Hide gen_future API from documentation 2019-06-04 19:22:30 +02:00
keyword_docs.rs document that crate refers to the project root 2019-07-11 14:25:53 -04:00
lib.rs Deny unused_lifetimes through rustbuild 2019-07-28 18:47:02 +03:00
macros.rs Introduce built-in macros through libcore 2019-07-26 13:09:54 +03:00
memchr.rs libstd => 2018 2019-02-28 04:06:15 +09:00
num.rs Reexport IntErrorKind in std 2019-04-23 00:15:43 +02:00
panic.rs HashMap is UnwindSafe 2019-07-02 16:01:06 +02:00
panicking.rs Convert more usages over 2019-07-01 20:21:12 -07:00
path.rs Revert "Add implementations of last in terms of next_back on a bunch of DoubleEndedIterators." 2019-05-22 14:09:34 -07:00
primitive_docs.rs word things more like we usually do 2019-07-23 17:51:52 +02:00
process.rs std: Move a process test out of libstd 2019-06-27 07:54:53 -07:00
rt.rs libstd => 2018 2019-02-28 04:06:15 +09:00
time.rs SystemTime docs: recommend Instant for elapsed time 2019-07-28 11:08:39 +01:00