Paul Eggert wrote: > > It is not spam. It is fully justified, since in > > putenv ((char []) {"TEST_VAR=abc"}) > > the argument is allocated in automatic storage. See ISO C § 6.5.2.5.(12). > > Well, to be fair, the test program removed the string from the > environment before 'main' returned
This part would be absent in the (quite possible) case that we decide to turn the test into two separate unit tests 'test-putenv-posix' and 'test-putenv-gnu'. 'test-putenv-posix' would not have this part. Bruno