Test character device by fd.