Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/bin/ufat/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1300,9 +1300,9 @@ mod tests {
fn a_failure_after_the_image_got_its_name_syncs_its_directory() {
// What a rename that may replace is: renameat() where there is one,
// renameat2() without flags elsewhere.
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
#[cfg(any(target_arch = "x86_64", target_arch = "x86", target_arch = "aarch64"))]
const RENAME: libc::c_long = libc::SYS_renameat;
#[cfg(not(any(target_arch = "x86_64", target_arch = "x86")))]
#[cfg(not(any(target_arch = "x86_64", target_arch = "x86", target_arch = "aarch64")))]
const RENAME: libc::c_long = libc::SYS_renameat2;
let dir = TempDir::new("named");
let (path, written) = (dir.0.join("a.img"), dir.0.join("a.manifest"));
Expand Down
7 changes: 4 additions & 3 deletions tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2268,8 +2268,9 @@ impl Refused {
errno: libc::EIO,
};
/// Every renameat(), a rename that may replace, failing. glibc renames
/// with it on x86_64 and x86, where it is a system call of its own.
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
/// with it on x86_64, x86 and aarch64, where it is a system call of its
/// own.
#[cfg(any(target_arch = "x86_64", target_arch = "x86", target_arch = "aarch64"))]
const RENAME: Refused = Refused {
call: libc::SYS_renameat,
flag: None,
Expand Down Expand Up @@ -2690,7 +2691,7 @@ fn assemble_in_a_directory_it_cannot_read() {
/// A file written next to the image that cannot get its name, where the
/// name exists and the rename onto it fails, takes its temporary name with
/// it, also with O_TMPFILE. The image keeps its name.
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
#[cfg(any(target_arch = "x86_64", target_arch = "x86", target_arch = "aarch64"))]
#[test]
fn an_output_that_cannot_replace_leaves_no_temporary_name() {
let _serial = common::serial();
Expand Down