getdelim tests: Add a test for the glibc bug. * tests/test-getdelim.c (main): Check that the buffer is terminated with a NUL character when the first character read is EOF.