mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
solaris: fix tests
This commit is contained in:
parent
8cfb2ad6c9
commit
7207a4970b
@ -130,7 +130,7 @@ fn protected_load_lib(r mut live.LiveReloadInfo, new_lib_path string) {
|
||||
|
||||
// NB: r.reloader() is executed in a new, independent thread
|
||||
fn reloader(r mut live.LiveReloadInfo) {
|
||||
elog(r,'reloader, r: $r')
|
||||
// elog(r,'reloader, r: $r')
|
||||
mut last_ts := os.file_last_mod_unix( r.original )
|
||||
for {
|
||||
if r.cb_recheck != 0 {
|
||||
|
@ -3231,7 +3231,7 @@ fn (mut g Gen) gen_str_for_type_with_styp(typ table.Type, styp string) string {
|
||||
table.Enum { g.gen_str_for_enum(it, styp, str_fn_name) }
|
||||
table.Struct { g.gen_str_for_struct(it, styp, str_fn_name) }
|
||||
table.Map { g.gen_str_for_map(it, styp, str_fn_name) }
|
||||
else { verror("could not generate string method $str_fn_name for type \'${styp}\'") }
|
||||
else { verror("could not generate string method $str_fn_name for type \'${styp}\' | sym.name: ${sym.name}") }
|
||||
}
|
||||
}
|
||||
// if varg, generate str for varg
|
||||
|
@ -16,10 +16,16 @@ fn pmessage() {
|
||||
|
||||
fn main() {
|
||||
println('START')
|
||||
pmessage()
|
||||
time.sleep_ms(10)
|
||||
pmessage()
|
||||
for i := 0; i<3*100; i++ {
|
||||
pmessage()
|
||||
time.sleep_ms(10)
|
||||
}
|
||||
pmessage()
|
||||
time.sleep_ms(10)
|
||||
pmessage()
|
||||
println('END')
|
||||
}
|
||||
"
|
||||
|
@ -99,8 +99,10 @@ fn test_inttypes_string_interpolation() {
|
||||
assert '${i:x}:${ui:X}:${int(s):x}' == '9f430000:CBF6EFC7:ffffa460'
|
||||
assert '${l:x}:${ul:X}' == '9537727cad98876c:EF2B7D4001165BD2'
|
||||
// default pointer format is platform dependent, so try a few
|
||||
eprintln("platform pointer format: '${vp:p}:$bp'")
|
||||
assert '${vp:p}:$bp' == '0xcbf6efc7:0x39e53208c' ||
|
||||
'${vp:p}:$bp' == 'CBF6EFC7:39E53208C' ||
|
||||
'${vp:p}:$bp' == 'cbf6efc7:39e53208c' ||
|
||||
'${vp:p}:$bp' == '00000000CBF6EFC7:000000039E53208C'
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user