All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] smokey: Close tmp file at end of sigdebug test
@ 2020-02-10 17:52 Jan Kiszka
  0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2020-02-10 17:52 UTC (permalink / raw)
  To: Xenomai

From: Jan Kiszka <jan.kiszka@siemens.com>

The rtdm test relies on successively free file descriptors which is
violated by this test when the run after each other.

Reported-by: Gylstorff Quirin <quirin.gylstorff@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 testsuite/smokey/sigdebug/sigdebug.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testsuite/smokey/sigdebug/sigdebug.c b/testsuite/smokey/sigdebug/sigdebug.c
index 15f9e4dae3..9cb5162c14 100644
--- a/testsuite/smokey/sigdebug/sigdebug.c
+++ b/testsuite/smokey/sigdebug/sigdebug.c
@@ -292,6 +292,7 @@ static int run_sigdebug(struct smokey_test *t, int argc, char *const argv[])
 	err = sem_destroy(&send_signal);
 	check_no_error("sem_destroy", err);
 
+	close(tmp_fd);
 	if (wd) {
 		fprintf(wd, "%d", wdog_delay);
 		fclose(wd);
-- 
2.16.4


-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-02-10 17:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-10 17:52 [PATCH] smokey: Close tmp file at end of sigdebug test Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.