3 ms·
You are a better developer than me, then. I take it you have tests in your product repos that test your compiler behaviour, including optimisations that you ena
by selcuka 1y ago
You are a better developer than me, then. I take it you have tests in your product repos that test your compiler behaviour, including optimisations that you enable while building binaries, and all third party dependencies you use. Is that accurate?
There is a difference between "gcc 4.8 is buggy, let's not use it" and "let's write unit tests for gcc". If you are suspicious about gcc, you should submit your patches to gcc, not vendor them in your own repo.
- thfuran 1y ago>I take it you have tests in your product repos that test your compiler behaviour, including optimisations that you enable while building binaries, and all third party dependencies you use. Is that accurate? Are you asking whether I write integration tests? Yes, I do. And at work there's a whole lot of acceptance testing too. >There is a difference between "gcc 4.8 is buggy, let's not use it" and "let's write unit tests for gcc". They're not proposing writing unit tests for gcc, only actually testing what gcc produces from their source. You know, by executing it like tests tend to do. Testing only the first party source would mean relying entirely on static source code analysis instead.
- selcuka 1y ago> Are you asking whether I write integration tests? Yes, I do. Exactly. You don't need unit tests for the binary output. You want to test whether the executable behaves as expected. Therefore "rust adds extra conditional branches that are never entered, and we can't test those branches" argument is not valid.