Skip to content

Commit 6e77612

Browse files
committed
Update tests
1 parent 7060d45 commit 6e77612

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

tests/unit/out/refcount/printfs.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ fn main_0() -> i32 {
2626
println!("{}", Ptr::from_string_literal("fprintf stdout"));
2727
println!("{} {} {}", 1, 2_u32, 3_i64);
2828
print!("hello world");
29-
let in_: Value<Ptr<::std::fs::File>> =
30-
Rc::new(RefCell::new((*stdin.with(Value::clone).borrow()).clone()));
29+
let in_: Value<Ptr<::std::fs::File>> = Rc::new(RefCell::new((libcc2rs::cin()).clone()));
3130
assert!(!((*in_.borrow()).is_null()));
3231
println!("{}", Ptr::from_string_literal("printf"));
3332
print!("hello world");

tests/unit/out/unsafe/printfs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ unsafe fn main_0() -> i32 {
3434
);
3535
printf(b"%d %u %ld\n\0".as_ptr() as *const i8, 1, 2_u32, 3_i64);
3636
printf(b"hello world\0".as_ptr() as *const i8);
37-
let mut in_: *mut ::std::fs::File = stdin;
37+
let mut in_: *mut ::std::fs::File = libcc2rs::cin_unsafe();
3838
assert!(!((in_).is_null()));
3939
printf(b"%s\n\0".as_ptr() as *const i8, b"printf\0".as_ptr());
4040
printf(b"hello world\0".as_ptr() as *const i8);

0 commit comments

Comments
 (0)