Skip to content

Commit a7c7dbb

Browse files
committed
---
yaml --- r: 272815 b: refs/heads/beta c: df9e173 h: refs/heads/master i: 272813: faca1f4 272811: ee99151 272807: c12e3b1 272799: 04c45ad
1 parent 5604d5a commit a7c7dbb

File tree

5 files changed

+29
-37
lines changed

5 files changed

+29
-37
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 4fbc0800337724f71af8f89a09dfc8679ed6e34f
26+
refs/heads/beta: df9e1733537bee656f36a3c89fd473f5f1a1dff5
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/src/test/compile-fail/allocator-dylib-is-system.rs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-windows everything is the system allocator on windows
12-
// ignore-musl no dylibs on musl yet
13-
// ignore-bitrig no jemalloc on bitrig
14-
// ignore-openbsd no jemalloc on openbsd
11+
// ignore-musl no dylibs
1512
// aux-build:allocator-dylib.rs
13+
// aux-build:allocator1.rs
1614
// no-prefer-dynamic
1715
// error-pattern: cannot link together two allocators
1816

@@ -23,7 +21,18 @@
2321
#![feature(alloc_jemalloc)]
2422

2523
extern crate allocator_dylib;
24+
25+
// The main purpose of this test is to ensure that `alloc_jemalloc` **fails**
26+
// here (specifically the jemalloc allocator), but currently jemalloc is
27+
// disabled on quite a few platforms (bsds, emscripten, msvc, etc). To ensure
28+
// that this just passes on those platforms we link in some other allocator to
29+
// ensure we get the same error.
30+
//
31+
// So long as we CI linux/OSX we should be good.
32+
#[cfg(any(target_os = "linux", target_os = "macos"))]
2633
extern crate alloc_jemalloc;
34+
#[cfg(not(any(target_os = "linux", target_os = "macos")))]
35+
extern crate allocator1;
2736

2837
fn main() {
2938
allocator_dylib::foo();

branches/beta/src/test/compile-fail/allocator-rust-dylib-is-jemalloc.rs

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-windows everything is the system allocator on windows
12-
// ignore-musl no dylibs on musl right now
13-
// ignore-bitrig no jemalloc on bitrig
14-
// ignore-openbsd no jemalloc on openbsd
11+
// ignore-musl no dylibs
1512
// aux-build:allocator-dylib2.rs
13+
// aux-build:allocator1.rs
1614
// error-pattern: cannot link together two allocators
1715

1816
// Ensure that rust dynamic libraries use jemalloc as their allocator, verifying
@@ -21,9 +19,19 @@
2119
#![feature(alloc_system)]
2220

2321
extern crate allocator_dylib2;
22+
23+
// The main purpose of this test is to ensure that `alloc_system` **fails**
24+
// here (specifically the system allocator), but currently system is
25+
// disabled on quite a few platforms (bsds, emscripten, msvc, etc). To ensure
26+
// that this just passes on those platforms we link in some other allocator to
27+
// ensure we get the same error.
28+
//
29+
// So long as we CI linux/OSX we should be good.
30+
#[cfg(any(target_os = "linux", target_os = "macos"))]
2431
extern crate alloc_system;
32+
#[cfg(not(any(target_os = "linux", target_os = "macos")))]
33+
extern crate allocator1;
2534

2635
fn main() {
2736
allocator_dylib2::foo();
2837
}
29-

branches/beta/src/test/run-pass/allocator-default.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(alloc_jemalloc, alloc_system)]
11+
#![feature(alloc_jemalloc)]
1212

13-
#[cfg(not(any(windows, target_os = "bitrig", target_os = "openbsd", target_os="emscripten")))]
13+
#[cfg(any(target_os = "linux", target_os = "macos"))]
1414
extern crate alloc_jemalloc;
15-
#[cfg(any(windows, target_os = "bitrig", target_os = "openbsd", target_os="emscripten"))]
16-
extern crate alloc_system;
1715

1816
fn main() {
1917
println!("{:?}", Box::new(3));

branches/beta/src/test/run-pass/allocator-jemalloc.rs

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)