1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tests: enable live tests on macos

This commit is contained in:
Alexander Medvednikov 2020-08-26 06:50:32 +02:00
parent 393b46a6dd
commit 84b8e0a7e4
2 changed files with 19 additions and 2 deletions

View File

@ -398,6 +398,23 @@ pub fn (c byte) str() string {
return str
}
/*
type rune = int
pub fn (r rune) str() string {
mut str := string{
str: malloc(2)
len: 1
}
unsafe {
str.str[0] = r
str.str[1] = `\0`
}
return str
}
*/
pub fn (c byte) is_capital() bool {
return c >= `A` && c <= `Z`
}

View File

@ -107,9 +107,9 @@ fn atomic_write_source(source string) {
//
fn testsuite_begin() {
if os.user_os() !in ['linux', 'solaris'] && os.getenv('FORCE_LIVE_TEST').len == 0 {
if os.user_os() !in ['linux', 'solaris', 'macos'] && os.getenv('FORCE_LIVE_TEST').len == 0 {
eprintln('Testing the runtime behaviour of -live mode,')
eprintln('is reliable only on Linux for now.')
eprintln('is reliable only on Linux/macOS for now.')
eprintln('You can still do it by setting FORCE_LIVE_TEST=1 .')
exit(0)
}