Skip to content

Conversation

@arihant2math
Copy link
Collaborator

A simple rust program that ensures some basic syscalls work.
I think that testing filesystem operations would be way easier with /tmp implemented.
Testing /dev/null could be interesting too.

// TODO: make tests their own process later
run_test(test_sync);
run_test(test_opendir);
run_test(test_readdir);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder whether there's a way to use Rust's standard test infrastructure here to run these tests.

Although, as you say - it will require threading, so we'd need #37 sorting first.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this is a little sturdier because it prevents some breakage by forking, which should help reduce bugs from causing runaway issues, given that forking works.

@hexagonal-sun
Copy link
Owner

LGTM

@hexagonal-sun hexagonal-sun merged commit a4e9cf9 into hexagonal-sun:master Dec 11, 2025
1 check passed
This was referenced Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants