chiark / gitweb /
regress/r1test: Support an `ADNS_TEST_DEBUG' env var.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 31 May 2014 22:05:19 +0000 (23:05 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 12 Oct 2014 19:38:25 +0000 (20:38 +0100)
commit1da660afaf3056f246215e52be47db4fc25103ba
tree28f21280d4e362764680f946ffa40e30b2d5de1b
parente8e5aeacbdaf5654974626d548f30a4c86e5ced6
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>
regress/r1test