chiark / gitweb /
regress/r1test: Support an `ADNS_TEST_DEBUG' env var.
Amazingly, sometimes the tests don't pass. When that happens, it's
handy to be able to debug the library and find out why.
It's a little tricky to attach GDB to the running process directly. I
used the following:
$ ADNS_TEST_DEBUG"noip gdbserver localhost:666" ./r1test CASE
and then, in another terminal, something like
$ noip gdb adnstest_s
(gdb) target remote localhost:666
to debug the program.
Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>