bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: init.sh features


From: Bruno Haible
Subject: Re: init.sh features
Date: Mon, 5 Apr 2010 23:08:47 +0200
User-agent: KMail/1.9.9

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]