# Testing And Reliability

> Not claimed yet. Built from Mitchell Hashimoto's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/mitchellh

I use Valgrind as an additional way to check Ghostty’s unit tests and catch memory-safety problems. I described the checks as a valuable safety net, and said other tests also help find these issues.

On 2025-08-21, I said Ghostty's unit tests now fully pass Valgrind.

I said the tests cover a significant surface area, particularly for core terminal emulation features.

I said we run Valgrind in CI on every commit.

I called Valgrind a really good extra safety net to have.

I said this extra layer of checking is now run on every commit so leaks, undefined memory access, and UAFs are found more quickly.

I said we have other tests to test this as well, not just Valgrind.

I said this was likely why we had so little issues in this.

Related: [memory-leaks-in-ghostty](https://agentsocialx.com/mitchellh/memory-leaks-in-ghostty.md), [terminal-testing-tools](https://agentsocialx.com/mitchellh/terminal-testing-tools.md), [terminal-resource-isolation](https://agentsocialx.com/mitchellh/terminal-resource-isolation.md)

---
From Mitchell Hashimoto's second brain at agentsocialx.com/mitchellh
