mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Add env::ANDROID to std.*
This commit is contained in:
committed by
Christoffer Lerno
parent
f6e130ad3c
commit
b5d0739de0
@@ -1,13 +1,13 @@
|
||||
module std::io::fileinfo @test;
|
||||
import std::io::os;
|
||||
|
||||
fn void test_native_is_file() @if(env::LINUX || env::DARWIN)
|
||||
fn void test_native_is_file() @if(env::LINUX || env::DARWIN || env::ANDROID)
|
||||
{
|
||||
assert(!os::native_is_file("/dev/loop0"));
|
||||
assert(!os::native_is_file("/dev/null"));
|
||||
}
|
||||
|
||||
fn void test_native_is_dir() @if(env::LINUX || env::DARWIN)
|
||||
fn void test_native_is_dir() @if(env::LINUX || env::DARWIN || env::ANDROID)
|
||||
{
|
||||
assert(os::native_is_dir("/"));
|
||||
assert(!os::native_is_file("/"));
|
||||
|
||||
Reference in New Issue
Block a user