Skip to content

Fix libc-tests for loongarch64#3551

Merged
JohnTitor merged 2 commits intorust-lang:mainfrom
heiher:fix-tests
Jan 20, 2024
Merged

Fix libc-tests for loongarch64#3551
JohnTitor merged 2 commits intorust-lang:mainfrom
heiher:fix-tests

Conversation

@heiher
Copy link
Copy Markdown
Contributor

@heiher heiher commented Jan 19, 2024

Fix hwcaps and syscalls tests for LoongArch64.

hwcaps

Move hwcaps to keep naming same as in c header files.

syscalls

This PR moves SYS_fstat and SYS_setrlimit from linux.txt to linux-$arch.txt. The rationale behind this change is the absence of these two system call numbers for certain architectures, such as LoongArch, which employ generic Linux syscall numbers. In these cases, __ARCH_WANT_NEW_STAT and __ARCH_WANT_SET_GET_RLIMIT are not defined.

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Jan 19, 2024

r? @JohnTitor

(rustbot has picked a reviewer for you, use r? to override)

@JohnTitor JohnTitor added this pull request to the merge queue Jan 20, 2024
Merged via the queue into rust-lang:main with commit 9ec2033 Jan 20, 2024
@heiher heiher deleted the fix-tests branch January 31, 2024 15:02
@tgross35 tgross35 added the stable-applied This PR has been cherry-picked to libc's stable release branch label Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review stable-applied This PR has been cherry-picked to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants