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

assignments/mini-libc: Proper synchronization of tests and targets in memory-measuring tests #227

Open
razvand opened this issue Mar 24, 2023 · 0 comments
Labels
area/assignment Update to homework assignments kind/improve Improve / Update existing content / item student-contrib Content change made by a student topic/software-stack Related to "Software Stack" chapter

Comments

@razvand
Copy link
Contributor

razvand commented Mar 24, 2023

The implementation of memory-measuring tests relies on sleeps both in the target program and in the test itself. This is imperfect and may be the cause of synchronization issues.

A better implementation, that makes the test interact with the target, is required. The implementation would wait for input to be provided by the target, do required operations, send input to the target to "unlock" it, and so on.

Probably Python in conjunction with subprocess.Popen would be a good way of implementing.

@razvand razvand added student-contrib Content change made by a student kind/improve Improve / Update existing content / item topic/software-stack Related to "Software Stack" chapter area/assignment Update to homework assignments labels Mar 24, 2023
@razvand razvand added this to the SO 2022-2023 sem 2 milestone Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/assignment Update to homework assignments kind/improve Improve / Update existing content / item student-contrib Content change made by a student topic/software-stack Related to "Software Stack" chapter
Projects
None yet
Development

No branches or pull requests

1 participant