Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
5387189d
R
Rust
项目概览
int
/
Rust
大约 1 年 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5387189d
编写于
3月 23, 2015
作者:
D
Dave Huseby
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixing some tests and temporarily disabling others to get Bitrig build working 100%
上级
b3315881
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
42 addition
and
13 deletion
+42
-13
src/compiletest/runtest.rs
src/compiletest/runtest.rs
+4
-3
src/libstd/sys/unix/fs.rs
src/libstd/sys/unix/fs.rs
+2
-1
src/test/debuginfo/gdb-pretty-struct-and-enums-pre-gdb-7-7.rs
...test/debuginfo/gdb-pretty-struct-and-enums-pre-gdb-7-7.rs
+1
-0
src/test/parse-fail/issue-5806.rs
src/test/parse-fail/issue-5806.rs
+1
-0
src/test/run-make/c-link-to-rust-staticlib/Makefile
src/test/run-make/c-link-to-rust-staticlib/Makefile
+1
-1
src/test/run-make/issue-14500/Makefile
src/test/run-make/issue-14500/Makefile
+4
-0
src/test/run-make/lto-smoke-c/Makefile
src/test/run-make/lto-smoke-c/Makefile
+1
-1
src/test/run-make/no-stack-check/Makefile
src/test/run-make/no-stack-check/Makefile
+7
-2
src/test/run-make/tools.mk
src/test/run-make/tools.mk
+9
-3
src/test/run-make/use-extern-for-plugins/Makefile
src/test/run-make/use-extern-for-plugins/Makefile
+5
-2
src/test/run-pass/sepcomp-cci.rs
src/test/run-pass/sepcomp-cci.rs
+1
-0
src/test/run-pass/sepcomp-extern.rs
src/test/run-pass/sepcomp-extern.rs
+1
-0
src/test/run-pass/sepcomp-fns-backwards.rs
src/test/run-pass/sepcomp-fns-backwards.rs
+1
-0
src/test/run-pass/sepcomp-fns.rs
src/test/run-pass/sepcomp-fns.rs
+1
-0
src/test/run-pass/sepcomp-statics.rs
src/test/run-pass/sepcomp-statics.rs
+1
-0
src/test/run-pass/sepcomp-unwind.rs
src/test/run-pass/sepcomp-unwind.rs
+1
-0
src/test/run-pass/tcp-stress.rs
src/test/run-pass/tcp-stress.rs
+1
-0
未找到文件。
src/compiletest/runtest.rs
浏览文件 @
5387189d
...
...
@@ -382,7 +382,8 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
// write debugger script
let
mut
script_str
=
String
::
with_capacity
(
2048
);
script_str
.push_str
(
"set charset UTF-8
\n
"
);
let
charset
=
if
cfg!
(
target_os
=
"bitrig"
)
{
"auto"
}
else
{
"UTF-8"
};
script_str
.push_str
(
&
format!
(
"set charset {}
\n
"
,
charset
));
script_str
.push_str
(
&
format!
(
"file {}
\n
"
,
exe_file
.to_str
()
.unwrap
()));
script_str
.push_str
(
"target remote :5039
\n
"
);
script_str
.push_str
(
&
format!
(
"set solib-search-path
\
...
...
@@ -516,8 +517,8 @@ fn sleep() {
.to_string
();
// write debugger script
let
mut
script_str
=
String
::
with_capacity
(
2048
);
script_str
.push_str
(
"set charset UTF-8
\n
"
);
let
charset
=
if
cfg!
(
target_os
=
"bitrig"
)
{
"auto"
}
else
{
"UTF-8"
};
script_str
.push_str
(
&
format!
(
"set charset {}
\n
"
,
charset
)
);
script_str
.push_str
(
"show version
\n
"
);
match
config
.gdb_version
{
...
...
src/libstd/sys/unix/fs.rs
浏览文件 @
5387189d
...
...
@@ -381,7 +381,8 @@ mod tests {
use
prelude
::
v1
::
*
;
#[cfg_attr(any(target_os
=
"freebsd"
,
target_os
=
"openbsd"
),
target_os
=
"openbsd"
,
target_os
=
"bitrig"
),
ignore)]
// under some system, pipe(2) will return a bidrectionnal pipe
#[test]
...
...
src/test/debuginfo/gdb-pretty-struct-and-enums-pre-gdb-7-7.rs
浏览文件 @
5387189d
...
...
@@ -12,6 +12,7 @@
// older versions of GDB too. A more extensive test can be found in
// gdb-pretty-struct-and-enums.rs
// ignore-bitrig
// ignore-windows failing on win32 bot
// ignore-freebsd: gdb package too new
// ignore-tidy-linelength
...
...
src/test/parse-fail/issue-5806.rs
浏览文件 @
5387189d
...
...
@@ -11,6 +11,7 @@
// ignore-windows
// ignore-freebsd
// ignore-openbsd
// ignore-bitrig
#[path
=
"../compile-fail"
]
mod
foo
;
//~ ERROR: a directory
...
...
src/test/run-make/c-link-to-rust-staticlib/Makefile
浏览文件 @
5387189d
...
...
@@ -8,7 +8,7 @@ endif
ifneq
($(shell uname),FreeBSD)
all
:
$(RUSTC)
foo.rs
$(CC)
bar.c
-lfoo
-o
$(
call
RUN_BINFILE,bar
)
$(EXTRAFLAGS)
-lstdc
++
$(CC)
bar.c
-lfoo
-o
$(
call
RUN_BINFILE,bar
)
$(EXTRAFLAGS)
$(EXTRACXXFLAGS)
$(
call
RUN,bar
)
rm
$(
call
STATICLIB,foo
*
)
$(
call
RUN,bar
)
...
...
src/test/run-make/issue-14500/Makefile
浏览文件 @
5387189d
...
...
@@ -6,6 +6,10 @@
# is compiled with LTO, it shouldn't strip the symbol from `foo`, and that's the
# only way that `foo.c` will successfully compile.
ifeq
($(UNAME),Bitrig)
EXTRACFLAGS
:=
-lc
$(EXTRACFLAGS)
$(EXTRACXXFLAGS)
endif
all
:
$(RUSTC)
foo.rs
--crate-type
=
rlib
$(RUSTC)
bar.rs
--crate-type
=
staticlib
-C
lto
-L
.
-o
$(TMPDIR)
/libbar.a
...
...
src/test/run-make/lto-smoke-c/Makefile
浏览文件 @
5387189d
...
...
@@ -5,5 +5,5 @@ CC := $(CC:-g=)
all
:
$(RUSTC)
foo.rs
-C
lto
$(CC)
bar.c
-lfoo
-o
$(
call
RUN_BINFILE,bar
)
$(EXTRACFLAGS)
-lstdc
++
$(CC)
bar.c
-lfoo
-o
$(
call
RUN_BINFILE,bar
)
$(EXTRACFLAGS)
$(EXTRACXXFLAGS)
$(
call
RUN,bar
)
src/test/run-make/no-stack-check/Makefile
浏览文件 @
5387189d
-include
../tools.mk
ifndef
IS_WINDOWS
ifneq
($(UNAME),OpenBSD)
SKIP_OS
:=
'OpenBSD Bitrig'
ifneq
($(UNAME),$(findstring $(UNAME),$(SKIP_OS)))
all
:
$(RUSTC)
-O
--emit
asm attr.rs
!
grep
-q
morestack
$(TMPDIR)
/attr.s
...
...
@@ -10,9 +14,10 @@ all:
$(RUSTC)
-O
--emit
asm
-C
no-stack-check flag.rs
!
grep
-q
morestack
$(TMPDIR)
/flag.s
else
# On OpenBSD, morestack isn't used as the segmented stacks are disabled
# On
Bitrig/
OpenBSD, morestack isn't used as the segmented stacks are disabled
all
:
endif
else
# On Windows we use __chkstk and it only appears in functions with large allocations,
# so this test wouldn't be reliable.
...
...
src/test/run-make/tools.mk
浏览文件 @
5387189d
...
...
@@ -55,15 +55,21 @@ endif
ifdef
IS_WINDOWS
EXTRACFLAGS
:=
-lws2_32
-luserenv
else
ifeq
($(
shell uname
),Darwin)
ifeq
($(
UNAME
),Darwin)
else
ifeq
($(
shell uname
),FreeBSD)
ifeq
($(
UNAME
),FreeBSD)
EXTRACFLAGS
:=
-lm
-lpthread
-lgcc_s
else
ifeq
($(shell uname),OpenBSD)
ifeq
($(UNAME),Bitrig)
EXTRACFLAGS
:=
-lm
-lpthread
EXTRACXXFLAGS
:=
-lc
++
-lc
++abi
else
ifeq
($(UNAME),OpenBSD)
EXTRACFLAGS
:=
-lm
-lpthread
else
EXTRACFLAGS
:=
-lm
-lrt
-ldl
-lpthread
EXTRACXXFLAGS
:=
-lstdc
++
endif
endif
endif
endif
...
...
src/test/run-make/use-extern-for-plugins/Makefile
浏览文件 @
5387189d
-include
../tools.mk
ifneq
($(findstring BSD,$(UNAME)),BSD)
SKIP_OS
:=
'FreeBSD OpenBSD Bitrig'
ifneq
($(UNAME),$(findstring $(UNAME),$(SKIP_OS)))
HOST
:=
$(
shell
$(RUSTC)
-vV
|
grep
'host:'
|
sed
's/host: //'
)
ifeq
($(findstring i686,$(HOST)),i686)
TARGET
:=
$(
subst
i686,x86_64,
$(HOST)
)
...
...
@@ -13,6 +16,6 @@ all:
$(RUSTC)
bar.rs
-C
extra-filename
=
-targ
--target
$(TARGET)
$(RUSTC)
baz.rs
--extern
a
=
$(TMPDIR)
/liba-targ.rlib
--target
$(TARGET)
else
# FreeBSD
& OpenBSD
support only x86_64 architecture for now
# FreeBSD
, OpenBSD, and Bitrig
support only x86_64 architecture for now
all
:
endif
src/test/run-pass/sepcomp-cci.rs
浏览文件 @
5387189d
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// ignore-bitrig
// compile-flags: -C codegen-units=3
// aux-build:sepcomp_cci_lib.rs
...
...
src/test/run-pass/sepcomp-extern.rs
浏览文件 @
5387189d
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// ignore-bitrig
// compile-flags: -C codegen-units=3
// aux-build:sepcomp-extern-lib.rs
...
...
src/test/run-pass/sepcomp-fns-backwards.rs
浏览文件 @
5387189d
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// ignore-bitrig
// compile-flags: -C codegen-units=3
// Test references to items that haven't been translated yet.
...
...
src/test/run-pass/sepcomp-fns.rs
浏览文件 @
5387189d
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// ignore-bitrig
// compile-flags: -C codegen-units=3
// Test basic separate compilation functionality. The functions should be able
...
...
src/test/run-pass/sepcomp-statics.rs
浏览文件 @
5387189d
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// ignore-bitrig
// compile-flags: -C codegen-units=3
// Test references to static items across compilation units.
...
...
src/test/run-pass/sepcomp-unwind.rs
浏览文件 @
5387189d
...
...
@@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// ignore-bitrig
// compile-flags: -C codegen-units=3
// Test unwinding through multiple compilation units.
...
...
src/test/run-pass/tcp-stress.rs
浏览文件 @
5387189d
...
...
@@ -11,6 +11,7 @@
// ignore-linux see joyent/libuv#1189
// ignore-android needs extra network permissions
// ignore-openbsd system ulimit (Too many open files)
// ignore-bitrig system ulimit (Too many open files)
// exec-env:RUST_LOG=debug
#![feature(rustc_private,
libc,
old_io,
io,
std_misc)]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录