Fix some windows rpass tests

This commit is contained in:
Alex Crichton 2014-04-05 22:18:52 -07:00
parent 0d9fd8e2a1
commit 2ecae80af2
5 changed files with 72 additions and 30 deletions

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[no_std];
#![no_std]
#[lang="fail_"]
fn fail(_: *i8, _: *i8, _: uint) -> ! { loop {} }

View file

@ -16,4 +16,6 @@ fn decode() -> ~str {
~""
}
pub fn main() {}
pub fn main() {
println!("{}", decode());
}

View file

@ -10,8 +10,9 @@
// aux-build:lang-item-public.rs
// ignore-android
// ignore-win32 #13361
#[no_std];
#![no_std]
extern crate lang_lib = "lang-item-public";

View file

@ -16,10 +16,18 @@
#[phase(syntax, link)]
extern crate log;
extern crate libc;
extern crate green;
extern crate rustuv;
use std::io::net::ip::{Ipv4Addr, SocketAddr};
use std::io::net::tcp::{TcpListener, TcpStream};
use std::io::{Acceptor, Listener};
use std::task;
#[start]
fn start(argc: int, argv: **u8) -> int {
green::start(argc, argv, rustuv::event_loop, main)
}
fn main() {
// This test has a chance to time out, try to not let it time out
@ -53,7 +61,9 @@ fn main() {
let (tx, rx) = channel();
for _ in range(0, 1000) {
let tx = tx.clone();
spawn(proc() {
let mut builder = task::task();
builder.opts.stack_size = Some(32 * 1024);
builder.spawn(proc() {
match TcpStream::connect(addr) {
Ok(stream) => {
let mut stream = stream;