Fix tests on aarch64

This commit is contained in:
Justine Tunney 2023-07-29 19:02:25 -07:00
parent 18bb5888e1
commit bd49ea1c3a
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
5 changed files with 12 additions and 4 deletions

View file

@ -144,6 +144,8 @@ TEST(socket, canBeInheritedByForkedWorker) {
WAIT(exit, 0);
}
#ifdef __x86_64__
__attribute__((__constructor__)) static void StdioPro(int argc, char *argv[]) {
if (argc >= 2 && !strcmp(argv[1], "StdioProg")) {
ASSERT_EQ(NULL, getenv("__STDIO_SOCKETS"));
@ -186,3 +188,5 @@ TEST(socket, canBeUsedAsExecutedStdio) {
EXPECT_SYS(0, 0, close(3));
WAIT(exit, 0);
}
#endif /* __x86_64__ */