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:
parent
393b46a6dd
commit
84b8e0a7e4
@ -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`
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user