diff options
| author | Mark Wielaard <[email protected]> | 2016-01-13 23:06:33 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2016-01-18 15:24:27 +0100 |
| commit | 0cd02dcafcfdaff56f483f41c0ec45de756c7083 (patch) | |
| tree | c47ebcdb5ab9a997ca351fe585b217c23380d909 /tests/dwfl-bug-fd-leak.c | |
| parent | 624e3cb81d436282fa9f6ce4fa63203bad236057 (diff) | |
tests: Skip dwfl-bug-fd-leak test if dwfl_linux_proc_report is unsupported.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'tests/dwfl-bug-fd-leak.c')
| -rw-r--r-- | tests/dwfl-bug-fd-leak.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/dwfl-bug-fd-leak.c b/tests/dwfl-bug-fd-leak.c index bcbfb290..689cdd79 100644 --- a/tests/dwfl-bug-fd-leak.c +++ b/tests/dwfl-bug-fd-leak.c @@ -27,6 +27,15 @@ #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 |
