mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tests: update the remaining erroring tests, CI should be green now
This commit is contained in:
parent
ae8f7cf569
commit
c6a7d0a3a0
@ -24,9 +24,10 @@ fn testsuite_end() {
|
||||
|
||||
fn test_inode_file_type() {
|
||||
filename := './test1.txt'
|
||||
if file := os.open_file(filename, 'w', 0o600) {
|
||||
file.close()
|
||||
mut file := os.open_file(filename, 'w', 0o600) or {
|
||||
return
|
||||
}
|
||||
file.close()
|
||||
mode := os.inode(filename)
|
||||
os.rm(filename)
|
||||
assert mode.typ == .regular
|
||||
@ -34,9 +35,10 @@ fn test_inode_file_type() {
|
||||
|
||||
fn test_inode_file_owner_permission() {
|
||||
filename := './test2.txt'
|
||||
if file := os.open_file(filename, 'w', 0o600) {
|
||||
file.close()
|
||||
mut file := os.open_file(filename, 'w', 0o600) or {
|
||||
return
|
||||
}
|
||||
file.close()
|
||||
mode := os.inode(filename)
|
||||
os.rm(filename)
|
||||
assert mode.owner.read
|
||||
|
Loading…
Reference in New Issue
Block a user