Closed nikarh closed 6 months ago
Can we add a test for this in CI? Just a
cargo check
would suffice.Also, do you have a way of testing this on the actual Vita software?
Running tests requires an actual piece of hardware (no way to run in qemu, since Vita runs a proprietary OS that demands specific hardware). Cargo check though is absolutely doable, will add it.
Currently, I run tests on a physical device using cargo-vita
tool which does these things in a single command:
At the same time, I run another plain text TCP socket server on my computer, and Vita runs a module that pipes stdin and stdout to that TCP socket, making it possible to see test results.
Fixed the comment, added check to CI and enabled CI check for tier 3 nightly targets
I'm assuming the tests pass when you run it on actual hardware, right?
Yes, I run them on the actual hardware, and all of them pass (except for the many_connections
due to fd limits on the system, but it also passes if I reduce 100 to 60)
Fixes #160
Notes
signal-hook
does not compile and won't work on Vita,pthread_kill
is a stub in Vitanewlib
NONBLOCK
flag from the read side of the pipe whenwait
detectsnotified
before polling