Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,12 @@
|
||||
module picoev
|
||||
|
||||
fn test_if_all_file_descriptors_are_properly_initialized() {
|
||||
mut pv := &Picoev{}
|
||||
pv.init()
|
||||
|
||||
for i in 0 .. max_fds {
|
||||
assert unsafe { pv.file_descriptors[i] } != unsafe { nil }
|
||||
assert unsafe { pv.file_descriptors[i].loop_id } == -1
|
||||
assert unsafe { pv.file_descriptors[i].fd } == 0
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user