Skip to content

Commit 3918a57

Browse files
committed
---
yaml --- r: 22223 b: refs/heads/snap-stage3 c: 13979eb h: refs/heads/master i: 22221: 0f8ca7c 22219: 2d62b79 22215: d4170d1 22207: a723e38 v: v3
1 parent b67a39c commit 3918a57

File tree

3 files changed

+8
-20
lines changed

3 files changed

+8
-20
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: e430a699f2c60890d9b86069fd0c68a70ece7120
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 7ead3c04112c77e6e6078e99ab19b9e28c172098
4+
refs/heads/snap-stage3: 13979eb7e2fddd3f46f4e83fbc41ed656636ce80
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/std.rc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ mod unicode;
121121

122122
// Compiler support modules
123123

124-
#[legacy_exports]
125124
mod test;
126125
#[legacy_exports]
127126
mod serialization;

branches/snap-stage3/src/libstd/test.rs

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,6 @@ use libc::size_t;
1515
use task::TaskBuilder;
1616
use comm = core::comm;
1717

18-
export TestName;
19-
export TestFn;
20-
export TestDesc;
21-
export test_main;
22-
export TestResult;
23-
export TestOpts;
24-
export TrOk;
25-
export TrFailed;
26-
export TrIgnored;
27-
export run_tests_console;
28-
2918
#[abi = "cdecl"]
3019
extern mod rustrt {
3120
#[legacy_exports];
@@ -36,17 +25,17 @@ extern mod rustrt {
3625
// paths; i.e. it should be a series of identifiers seperated by double
3726
// colons. This way if some test runner wants to arrange the tests
3827
// hierarchically it may.
39-
type TestName = ~str;
28+
pub type TestName = ~str;
4029

4130
// A function that runs a test. If the function returns successfully,
4231
// the test succeeds; if the function fails then the test fails. We
4332
// may need to come up with a more clever definition of test in order
4433
// to support isolation of tests into tasks.
45-
type TestFn = fn~();
34+
pub type TestFn = fn~();
4635

4736
// The definition of a single test. A test runner will run a list of
4837
// these.
49-
type TestDesc = {
38+
pub type TestDesc = {
5039
name: TestName,
5140
testfn: TestFn,
5241
ignore: bool,
@@ -55,7 +44,7 @@ type TestDesc = {
5544

5645
// The default console test runner. It accepts the command line
5746
// arguments and a vector of test_descs (generated at compile time).
58-
fn test_main(args: &[~str], tests: &[TestDesc]) {
47+
pub fn test_main(args: &[~str], tests: &[TestDesc]) {
5948
let opts =
6049
match parse_opts(args) {
6150
either::Left(move o) => o,
@@ -64,7 +53,7 @@ fn test_main(args: &[~str], tests: &[TestDesc]) {
6453
if !run_tests_console(&opts, tests) { fail ~"Some tests failed"; }
6554
}
6655

67-
type TestOpts = {filter: Option<~str>, run_ignored: bool,
56+
pub type TestOpts = {filter: Option<~str>, run_ignored: bool,
6857
logfile: Option<~str>};
6958

7059
type OptRes = Either<TestOpts, ~str>;
@@ -93,7 +82,7 @@ fn parse_opts(args: &[~str]) -> OptRes {
9382
return either::Left(test_opts);
9483
}
9584

96-
enum TestResult { TrOk, TrFailed, TrIgnored, }
85+
pub enum TestResult { TrOk, TrFailed, TrIgnored, }
9786

9887
impl TestResult : Eq {
9988
pure fn eq(other: &TestResult) -> bool {
@@ -113,7 +102,7 @@ type ConsoleTestState =
113102
mut failures: ~[TestDesc]};
114103

115104
// A simple console test runner
116-
fn run_tests_console(opts: &TestOpts,
105+
pub fn run_tests_console(opts: &TestOpts,
117106
tests: &[TestDesc]) -> bool {
118107

119108
fn callback(event: &TestEvent, st: ConsoleTestState) {

0 commit comments

Comments
 (0)