public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* posix/tst-spawn5 failes under make -j
@ 2021-07-09  9:45 Florian Weimer
  2021-07-09 13:10 ` Adhemerval Zanella
  0 siblings, 1 reply; 5+ messages in thread
From: Florian Weimer @ 2021-07-09  9:45 UTC (permalink / raw)
  To: libc-alpha

This patch adds some additional diagonstics:

diff --git a/posix/tst-spawn5.c b/posix/tst-spawn5.c
index 277b848794..5ba7c7fadb 100644
--- a/posix/tst-spawn5.c
+++ b/posix/tst-spawn5.c
@@ -116,7 +116,11 @@ handle_restart (int argc, char *argv[])
 	  fds[i].found = found = true;
 
       if (!found)
-        FAIL_EXIT1 ("unexpected open file descriptor: %ld", fd);
+	{
+	  char *path = xasprintf ("/proc/self/fd/%s", e->d_name);
+	  char *resolved = xreadlink (path);
+	  FAIL_EXIT1 ("unexpected open file descriptor %ld: %s", fd, resolved);
+	}
     }
   closedir (dirp);
 
It's the pipe from the make job server:

error: tst-spawn5.c:122: unexpected open file descriptor 3: pipe:[9958839]

I think the test needs to be changed so that lowfd is passed across the
restart, and checking only considers descriptors >= lowfd.

Comments?

Thanks,
Florian


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-07-09 18:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-09  9:45 posix/tst-spawn5 failes under make -j Florian Weimer
2021-07-09 13:10 ` Adhemerval Zanella
2021-07-09 13:41   ` Florian Weimer
2021-07-09 14:17     ` Adhemerval Zanella
2021-07-09 18:40       ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).