Skip to content

Commit b2960b9

Browse files
committed
Update tests
1 parent c73d4a8 commit b2960b9

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

tests/unit/out/unsafe/stdio.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ pub unsafe fn test_fileno_3() {
175175
Box::from_raw(fp);
176176
0
177177
};
178+
assert!(((((libc::unlink(file as *const i8)) == (0)) as i32) != 0));
178179
}
179180
pub fn main() {
180181
unsafe {

tests/unit/stdio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// no-compile: refcount
22
#include <assert.h>
33
#include <stdio.h>
4+
#include <unistd.h>
45

56
static void test_fputc(void) {
67
fputc('H', stdout);

0 commit comments

Comments
 (0)