mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Update libc test
This commit is contained in:
committed by
Christoffer Lerno
parent
97a9cab218
commit
29bcd2c96e
@@ -212,7 +212,7 @@ fn void clock() @test
|
||||
|
||||
fn void close() @test @if(!env::WIN32)
|
||||
{
|
||||
assert(libc::close(13) == -1);
|
||||
assert(libc::close(1313) != 0);
|
||||
// NOTE: errno is part of libc, and is thus recursively imported
|
||||
assert(libc::errno() == errno::EBADF);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user