Skip to content

Commit 284ffc5

Browse files
committed
Fix test suite for DragonFly
1 parent e99fc20 commit 284ffc5

File tree

7 files changed

+13
-0
lines changed

7 files changed

+13
-0
lines changed

src/compiletest/runtest.rs

+2
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,7 @@ fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
834834
#[cfg(target_os = "linux")]
835835
#[cfg(target_os = "macos")]
836836
#[cfg(target_os = "freebsd")]
837+
#[cfg(target_os = "dragonfly")]
837838
fn prefix_matches( line : &str, prefix : &str ) -> bool {
838839
line.starts_with( prefix )
839840
}
@@ -1237,6 +1238,7 @@ fn program_output(config: &Config, testfile: &Path, lib_path: &str, prog: String
12371238
#[cfg(target_os = "linux")]
12381239
#[cfg(target_os = "macos")]
12391240
#[cfg(target_os = "freebsd")]
1241+
#[cfg(target_os = "dragonfly")]
12401242
fn make_cmdline(_libpath: &str, prog: &str, args: &[String]) -> String {
12411243
format!("{} {}", prog, args.connect(" "))
12421244
}

src/compiletest/util.rs

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ static OS_TABLE: &'static [(&'static str, &'static str)] = &[
2121
("android", "android"),
2222
("linux", "linux"),
2323
("freebsd", "freebsd"),
24+
("dragonfly", "dragonfly"),
2425
];
2526

2627
pub fn get_os(triple: &str) -> &'static str {

src/test/run-pass/dupe-first-attr.rc

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ mod hello;
2323
#[cfg(target_os = "freebsd")]
2424
mod hello;
2525

26+
#[cfg(target_os = "dragonfly")]
27+
mod hello;
28+
2629
#[cfg(target_os = "android")]
2730
mod hello;
2831

src/test/run-pass/intrinsic-alignment.rs

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ mod rusti {
2020
#[cfg(target_os = "linux")]
2121
#[cfg(target_os = "macos")]
2222
#[cfg(target_os = "freebsd")]
23+
#[cfg(target_os = "dragonfly")]
2324
mod m {
2425
#[main]
2526
#[cfg(target_arch = "x86")]

src/test/run-pass/lang-item-public.rs

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ extern {}
2828
#[link(name = "execinfo")]
2929
extern {}
3030

31+
#[cfg(target_os = "dragonfly")]
32+
#[link(name = "c")]
33+
extern {}
34+
3135
#[cfg(target_os = "macos")]
3236
#[link(name = "System")]
3337
extern {}

src/test/run-pass/rec-align-u64.rs

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ struct Outer {
3939
#[cfg(target_os = "linux")]
4040
#[cfg(target_os = "macos")]
4141
#[cfg(target_os = "freebsd")]
42+
#[cfg(target_os = "dragonfly")]
4243
mod m {
4344
#[cfg(target_arch = "x86")]
4445
pub mod m {

src/test/run-pass/x86stdcall.rs

+1
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@ pub fn main() {
3333
#[cfg(target_os = "macos")]
3434
#[cfg(target_os = "linux")]
3535
#[cfg(target_os = "freebsd")]
36+
#[cfg(target_os = "dragonfly")]
3637
#[cfg(target_os = "android")]
3738
pub fn main() { }

0 commit comments

Comments
 (0)