Fallout from stabilization

This commit is contained in:
Aaron Turon 2015-02-17 15:10:25 -08:00
parent d8f8f7a58c
commit d0de2b46e9
89 changed files with 578 additions and 558 deletions

View file

@ -518,18 +518,18 @@ mod tests {
#[test]
fn test_null_byte() {
use thread::Thread;
let result = Thread::scoped(move|| {
use thread;
let result = thread::spawn(move|| {
Path::new(b"foo/bar\0")
}).join();
assert!(result.is_err());
let result = Thread::scoped(move|| {
let result = thread::spawn(move|| {
Path::new("test").set_filename(b"f\0o")
}).join();
assert!(result.is_err());
let result = Thread::scoped(move|| {
let result = thread::spawn(move|| {
Path::new("test").push(b"f\0o");
}).join();
assert!(result.is_err());

View file

@ -1305,18 +1305,18 @@ mod tests {
#[test]
fn test_null_byte() {
use thread::Thread;
let result = Thread::scoped(move|| {
use thread;
let result = thread::spawn(move|| {
Path::new(b"foo/bar\0")
}).join();
assert!(result.is_err());
let result = Thread::scoped(move|| {
let result = thread::spawn(move|| {
Path::new("test").set_filename(b"f\0o")
}).join();
assert!(result.is_err());
let result = Thread::scoped(move || {
let result = thread::spawn(move || {
Path::new("test").push(b"f\0o");
}).join();
assert!(result.is_err());