Ralf Jung
f7612f71bc
more consistent error capitalization
2020-09-17 17:33:47 +02:00
Ralf Jung
192b535adc
cleaner output for cargo-miri-test harness
2020-09-17 17:33:47 +02:00
Ralf Jung
b244a2ddaa
make sure subcrate tests have the right cwd
2020-09-17 17:33:47 +02:00
Ralf Jung
c99fb102b8
test 'cargo miri run' CWD, also for subcrate in a workspace
2020-09-17 17:33:47 +02:00
Ralf Jung
113a335c3e
test propagating env vars from build.rs to binary
2020-09-17 17:33:47 +02:00
Ralf Jung
33c669679e
test 'harness=false' tests
2020-09-17 17:33:47 +02:00
Ralf Jung
174a92c39a
detect when the user passes Miri's flags the old way, and support this for now
2020-09-17 17:33:47 +02:00
Ralf Jung
93bedd0a09
fix cargo-miri-test for cross-runs
2020-09-17 17:33:47 +02:00
Ralf Jung
2205ed5bbb
show proper warning about not running doctests
2020-09-17 17:33:47 +02:00
Ralf Jung
ba3b354af9
update comment
...
Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
2020-09-17 17:33:47 +02:00
Ralf Jung
504c617cd4
test reading from stdin
2020-09-17 17:33:47 +02:00
Ralf Jung
74fdb5cf2c
patch away --error-format and --json so that errors are rendered properly
2020-09-17 17:33:47 +02:00
Ralf Jung
119bf4d607
forward build-time env vars to binary, and test that we do
2020-09-17 17:33:46 +02:00
Ralf Jung
10f58b3eab
fix Miri script on macOS
2020-09-17 17:29:19 +02:00
Ralf Jung
c793d6036a
handle binary suffices (for Windows); stop deleting fake binary
2020-09-17 17:29:19 +02:00
Ralf Jung
53eab7195a
make our filename handling work better across platforms
2020-09-17 17:29:19 +02:00
Ralf Jung
147330cc36
even when not linking, create stub .rlib files to fool cargo
2020-09-17 17:29:19 +02:00
Ralf Jung
0019fe2459
fix typo
...
Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
2020-09-17 17:29:19 +02:00
Ralf Jung
9a9988a4b0
update docs, and also use MIRIFLAGS for the test suite
2020-09-17 17:29:19 +02:00
Ralf Jung
ee7d589530
test respecting 'test=false', and what happens with doctests
2020-09-17 17:29:19 +02:00
Ralf Jung
c41a039c56
patch --extern and --emit; test suite passes now!
2020-09-17 17:29:19 +02:00
Ralf Jung
7ee2729824
it actually runs tests now!
2020-09-17 17:29:19 +02:00
Ralf Jung
e2119dc94d
stub JSON information flow from cargo-build-time to run-time
2020-09-17 17:29:19 +02:00
Ralf Jung
16afe1a234
towards letting cargo do binary selection: wrappers and runners set up
2020-09-17 17:29:19 +02:00
Ralf Jung
2b3b83eb2c
canonicalize miri's directory
2020-09-17 17:29:19 +02:00
bors
09e6ccc580
Auto merge of #1546 - Aaron1011:fix/windows-panic, r=RalfJung
...
Enable some panic tests on Windows
2020-09-17 13:49:44 +00:00
Aaron Hill
93c31e7790
Enable some panic tests on Windows
2020-09-17 09:42:04 -04:00
bors
8b4b0b4a54
Auto merge of #1545 - RalfJung:azure-ci, r=RalfJung
...
also detect Azure CI environments
Cc `@sunjay`
2020-09-13 19:59:14 +00:00
Ralf Jung
ebc3b71881
also detect Azure CI environments
2020-09-13 21:10:29 +02:00
bors
2249c10507
Auto merge of #1543 - RalfJung:btree, r=RalfJung
...
test BTreeMap::drain_filter for leaks
2020-09-11 10:20:52 +00:00
Ralf Jung
bc548d3004
test BTreeMap::drain_filter for leaks
2020-09-11 12:20:08 +02:00
bors
a6741b0592
Auto merge of #1541 - RalfJung:rustup, r=RalfJung
...
Rustup, expand collection tests
2020-09-10 06:45:44 +00:00
Ralf Jung
e61be0b8b8
expand collection tests
2020-09-10 08:44:27 +02:00
Ralf Jung
bea2d7bb55
rustup
2020-09-10 08:38:30 +02:00
bors
dc0a54c862
Auto merge of #1511 - samrat:more-fd-trait-ops, r=RalfJung
...
Implement dup and close for stdin/stdout/stderr
Implements some of the operations for stdin/out/err, towards #1499
2020-09-09 17:58:08 +00:00
Samrat Man Singh
563fb8e43d
Implement dup and close for stdin/stdout/stderr
...
Support F_DUPFD on stdin/stdout/stderr
Enable `close`-ing stdin/stdout/stderr
For `dup`, check if FD is `File` first
If not, clone the appropriate standard IO stream
Merge POSIX `close` and `dup` tests into same module
Also, add assertion that `write` on a closed FD returns an error.
Add `dup` as FileDescriptor trait fn
Also:
- Fix `close` so it drops `self` instead of reference to it
- Remove FD clamping in insert_fd_with_min_fd, since FDs 0-2 can be
closed
Fix fs_libc tests
Make error message when closing stdin/out/err more specific
Return io::Result from `FileDescriptor::dup`
Change error message when closing stdin/out/err
Refactor `FileDescriptor::dup` impl for `FileHandle`
Remove empty line
2020-09-09 23:26:33 +05:30
bors
604a674ea3
Auto merge of #1536 - divergentdave:nanosleep, r=RalfJung
...
Nanosleep
This PR adds a shim for `libc::nanosleep`, (available under -Zmiri-disable-isolation only) which backs `thread::sleep` on Linux and macOS. I started off by extracting the `timespec` parsing from the `pthread_cond_timedwait` shim into a helper method, and adding checks for invalid values. The second commit adds the new shim and a small test. The shim blocks the current thread, and registers a timeout callback to unblock the thread again, using the same method as `pthread_cond_timedwait` does.
2020-09-08 08:26:33 +00:00
David Cook
b06f0d16a9
Use try block instead of closure
2020-09-07 15:09:34 -05:00
David Cook
06aaea1d6b
Update comment
2020-09-07 15:05:26 -05:00
David Cook
597360f499
Simplify read_timespec error handling
2020-09-07 11:31:28 -05:00
David Cook
33e928c9ca
Review comments
2020-09-07 10:54:39 -05:00
bors
3bc1136600
Auto merge of #1539 - RalfJung:issue, r=RalfJung
...
float test case: fix referenced issue
2020-09-07 11:11:03 +00:00
Ralf Jung
3fdbc0fd3f
fix referenced issue
2020-09-07 13:10:31 +02:00
bors
bb9db2bf8f
Auto merge of #1538 - RalfJung:rustup, r=RalfJung
...
rustup: work around rustc optimizations becoming too smart
2020-09-07 09:30:11 +00:00
Ralf Jung
3ba1035d27
use standard black_box function
2020-09-07 11:29:47 +02:00
Ralf Jung
029c851d7c
another optimization work-around
2020-09-07 11:23:09 +02:00
Ralf Jung
088af66f85
better optimization suppression
...
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
2020-09-07 11:16:16 +02:00
Ralf Jung
d9bc19a7b0
test opt-level 2
2020-09-07 10:43:49 +02:00
Ralf Jung
210f18d6c7
work around rustc optimizations becoming too smart
2020-09-07 10:24:38 +02:00
David Cook
417ac2939a
Implement libc::nanosleep shim
2020-09-06 18:07:17 -05:00