Jim Meyering wrote: > This could be an argument for wrapping some of the C-only tests in a > simple init.sh-using driver (maybe even automatically). Any test that > creates a temporary file would benefit.
Yes, I agree: It would make things simpler and more robust if all tests that require temporary files would have a shell script as test driver. Among others, this would guarantee that temporary files get erased when the test gets interrupted with Ctrl-C. In theory, this can be done with a signal handler, but most tests are written in a minimal way and don't care about this. (Only tests/test-stat-time.c and tests/test-posix_spawn3.c install a signal handler for cleanup.) Bruno