diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-02-07 22:54:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-07 22:54:23 -0500 |
| commit | 370b63f38669970fd352bdaed6cdb05855f50f99 (patch) | |
| tree | b4e2f8e300829a49157c61f88ffb410097fbfd40 /src/test | |
| parent | 4c29a19bd50de03acc8ade05c4f908d0f860e797 (diff) | |
| parent | 1747ce25ad122e1b330eeb1eaf4e2d67f10b355d (diff) | |
Rollup merge of #39400 - alexcrichton:arm-cross-test, r=brson
Add support for test suites emulated in QEMU This commit adds support to the build system to execute test suites that cannot run natively but can instead run inside of a QEMU emulator. A proof-of-concept builder was added for the `arm-unknown-linux-gnueabihf` target to show off how this might work. In general the architecture is to have a server running inside of the emulator which a local client connects to. The protocol between the server/client supports compiling tests on the host and running them on the target inside the emulator. Closes #33114
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/fds-are-cloexec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/fds-are-cloexec.rs b/src/test/run-pass/fds-are-cloexec.rs index 0abe44d8259..a1b7d42a196 100644 --- a/src/test/run-pass/fds-are-cloexec.rs +++ b/src/test/run-pass/fds-are-cloexec.rs @@ -35,7 +35,7 @@ fn main() { } fn parent() { - let file = File::open(file!()).unwrap(); + let file = File::open(env::current_exe().unwrap()).unwrap(); let tcp1 = TcpListener::bind("127.0.0.1:0").unwrap(); let tcp2 = tcp1.try_clone().unwrap(); let addr = tcp1.local_addr().unwrap(); |
