mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-12 05:59:10 +00:00
Fix tests on aarch64
This commit is contained in:
parent
18bb5888e1
commit
bd49ea1c3a
5 changed files with 12 additions and 4 deletions
|
@ -73,6 +73,7 @@ TEST(siocgifconf, test) {
|
|||
ASSERT_NE(-1, close(socketfd));
|
||||
}
|
||||
|
||||
#ifdef __x86_64__
|
||||
TEST(siocgifconf, mkntenvblock_systemroot) {
|
||||
if (__argc != 1) return;
|
||||
SPAWN(fork);
|
||||
|
@ -81,3 +82,4 @@ TEST(siocgifconf, mkntenvblock_systemroot) {
|
|||
abort();
|
||||
EXITS(0);
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -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__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue