Skip to content

Commit 297c002

Browse files
committed
tests should ignore setservent() and endservent() on illumos
Depending on the compilation environment (e.g., whether the 3XNET or 3SOCKET version of these functions is in play, whether EXTENSIONS has been defined, etc) these functions may be declared to return either void or int. The return value is hard coded as zero, and can be ignored to better align with other platforms where these functions are always void.
1 parent e67af59 commit 297c002

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libc-test/build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,11 @@ fn test_solarish(target: &str) {
866866
"madvise" | "mprotect" if is_illumos => true,
867867
"door_call" | "door_return" | "door_create" if is_illumos => true,
868868

869+
// These functions may return int or void depending on the exact
870+
// configuration of the compilation environment, but the return
871+
// value is not useful (always 0) so we can ignore it:
872+
"setservent" | "endservent" if is_illumos => true,
873+
869874
_ => false,
870875
}
871876
});

0 commit comments

Comments
 (0)