Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FStar.IO could do with a flush #3496

Open
briangmilnes opened this issue Sep 24, 2024 · 1 comment
Open

FStar.IO could do with a flush #3496

briangmilnes opened this issue Sep 24, 2024 · 1 comment

Comments

@briangmilnes
Copy link
Contributor

For testing, I write log files then read them and do a string compare to the expected.
Useful for things like running external but small tests. It would be good to have the
write log flushed before reading.

FStar.Unix the new wrapper I've finished (but not merged) has flush of course.
Should we make a flush in FStar.IO so that we can call it in fstar/rst/fsharp/c?

@briangmilnes
Copy link
Contributor Author

OCaml unix alas does not provide an O_TMPFILE flag to openfile. So we could
do with a random, a tmpfile addition and a file delete in FStar.IO. I'll build them
if approved.

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

No branches or pull requests

1 participant