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

Feature Request: Threaded Support for Fossil Test #48

Open
dreamer-coding opened this issue Jan 4, 2025 · 0 comments
Open

Feature Request: Threaded Support for Fossil Test #48

dreamer-coding opened this issue Jan 4, 2025 · 0 comments

Comments

@dreamer-coding
Copy link
Collaborator

dreamer-coding commented Jan 4, 2025

Is your feature request related to a problem? Please describe.
Fossil Test lacks proper support for testing multithreaded code. This makes it difficult to validate the behavior of concurrent applications, particularly for issues like race conditions, deadlocks, or thread safety. I’m often frustrated when I have to write manual scripts or use external tools to test multithreaded logic, which can lead to inconsistent or incomplete coverage.

Describe the solution you’d like
I would like Fossil Test to include built-in support for testing threaded code, providing features such as:
• Automatic detection and reporting of common threading issues like deadlocks, livelocks, and race conditions.
• Tools to simulate thread scheduling randomness for stress testing.
• Synchronization primitives (e.g., mock semaphores, locks) that can be tested under different scenarios.
• Hooks for testing thread lifecycle events, including creation, execution, and termination.
• Support for defining and running tests in parallel to evaluate performance and concurrency.

Describe alternatives you’ve considered
• Using external debugging tools like Valgrind or thread sanitizers, but these can be cumbersome to integrate and are not tailored for Fossil Test.
• Writing custom thread-related tests, which is labor-intensive and often doesn’t cover edge cases effectively.

Additional context
Threaded support in Fossil Test would allow developers to confidently test complex multithreaded applications. This feature could also include debugging tools like stack traces for thread crashes and logs for synchronization events, making it easier to identify and resolve threading issues.

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