@@ -169,6 +169,7 @@ fn test_write_and_read_string_to_file() {
169
169
170
170
// test_write_and_read_bytes checks for regressions made in the functions
171
171
// read_bytes, read_bytes_at and write_bytes.
172
+
172
173
fn test_write_and_read_bytes () {
173
174
file_name := './byte_reader_writer.tst'
174
175
payload := [u8 (`I` ), `D` , `D` , `Q` , `D` ]
@@ -457,6 +458,7 @@ fn test_realpath_absolutizes_existing_relative_paths() {
457
458
}
458
459
459
460
// TODO: think much more about whether this is desirable:
461
+
460
462
fn test_realpath_does_not_absolutize_non_existing_relative_paths () {
461
463
relative_path := os.join_path ('one' , 'nonexisting_folder' , '..' , 'something' )
462
464
$if ! windows {
@@ -554,6 +556,7 @@ fn test_make_hardlink_check_is_link_and_remove_hardlink_with_file() {
554
556
// println(cpid)
555
557
// }
556
558
// }
559
+
557
560
fn test_symlink () {
558
561
os.mkdir ('symlink' ) or { panic (err) }
559
562
os.symlink ('symlink' , 'symlink2' ) or { panic (err) }
@@ -805,9 +808,15 @@ fn test_truncate() {
805
808
}
806
809
807
810
fn test_hostname () {
808
- assert os.hostname ().len > 2
811
+ hostname := os.hostname () or { '' }
812
+ assert hostname.len > 2
809
813
}
810
814
815
+ // fn test_loginname() {
816
+ // loginname := os.loginname() or { '' }
817
+ // assert loginname.len > 2
818
+ // }
819
+
811
820
fn test_glob () {
812
821
os.mkdir ('test_dir' ) or { panic (err) }
813
822
for i in 0 .. 4 {
0 commit comments