From 0950e3707361c2c0e6af02502297a8f8863740ba Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Fri, 13 Jan 2017 00:09:10 -0500 Subject: [PATCH] fix test and example --- examples/hello.rs | 2 +- tests/test.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/hello.rs b/examples/hello.rs index c0997d4..0ca9c76 100644 --- a/examples/hello.rs +++ b/examples/hello.rs @@ -8,7 +8,7 @@ // except according to those terms. #[macro_use] -extern crate syscall; +extern crate sc; fn write(fd: usize, buf: &[u8]) { unsafe { diff --git a/tests/test.rs b/tests/test.rs index f81f4a8..8ed7c37 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -8,18 +8,18 @@ // except according to those terms. #[macro_use] -extern crate syscall; +extern crate sc; // getpid() is POSIX but that doesn't guarantee it's a system call. -#[cfg(any(target_os="linux", target_os="freebsd"))] +#[cfg(any(target_os = "linux", target_os = "freebsd"))] #[test] fn getpid() { unsafe { - assert!(0 < syscall::syscall0(syscall::nr::GETPID)); + assert!(0 < sc::syscall0(sc::nr::GETPID)); } } -#[cfg(any(target_os="linux", target_os="freebsd"))] +#[cfg(any(target_os = "linux", target_os = "freebsd"))] #[test] fn getpid_macro() { unsafe {