Re: FYI: new test for a hard-to-detect race fix, using gdb(!)

2006-12-15 Thread Thomas Schwinge
Hello! On Thu, Dec 14, 2006 at 05:21:34PM +0100, Jim Meyering wrote: [...] +( gdb --version ) gdb.out 21 +if test ! -s gdb.out; then + echo $0: can't run gdb. Skipping this test. 12 + (exit 77); exit 77 +fi #v+ $ ( nonexistent ) out 21 $ test ! -s out echo can\'t run || echo

FYI: new test for a hard-to-detect race fix, using gdb(!)

2006-12-14 Thread Jim Meyering
I couldn't think of any other way to test for this bug/fix. Using gdb and counting open_safer breakpoints is ugly and a little fragile -- and the test is skipped when there are no debugging symbols. But it's a lot better than nothing. Ideas for improvement welcome. 2006-12-14 Jim Meyering