]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests: Skip dwfl-bug-fd-leak test if dwfl_linux_proc_report is unsupported.
authorMark Wielaard <mjw@redhat.com>
Wed, 13 Jan 2016 22:06:33 +0000 (23:06 +0100)
committerMark Wielaard <mjw@redhat.com>
Mon, 18 Jan 2016 14:24:27 +0000 (15:24 +0100)
Signed-off-by: Mark Wielaard <mjw@redhat.com>
tests/ChangeLog
tests/dwfl-bug-fd-leak.c

index 34104ffe1f8d5e3ac30493ef9e02285de3e91b63..37f981126440c9ac6108cc83bafb4a05617f1d32 100644 (file)
@@ -1,3 +1,7 @@
+2016-01-13  Mark Wielaard  <mjw@redhat.com>
+
+       * dwfl-bug-fd-leak.c: Skip test unless on __linux__.
+
 2016-01-13  Mark Wielaard  <mjw@redhat.com>
 
        * dwfl-proc-attach.c: Guard linux specific header.
index bcbfb290cefda5064f1b83a17e7f9fa9702cc829..689cdd7924b295c70d7dc4e940cef258579b0cbb 100644 (file)
 #include <error.h>
 #include <unistd.h>
 #include <dwarf.h>
+
+#ifndef __linux__
+int
+main (void)
+{
+  return 77; /* dwfl_linux_proc_report is linux specific.  */
+}
+#else
+
 #include <sys/resource.h>
 #include ELFUTILS_HEADER(dwfl)
 
@@ -104,3 +113,4 @@ main (void)
 
   return 0;
 }
+#endif