Skip to content

Commit 995e305

Browse files
committed
fix: update setarch command arguments to use long options
1 parent 289c2a2 commit 995e305

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/executor/helpers/command.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ mod tests {
141141
let mut builder = CommandBuilder::new("valgrind");
142142
builder
143143
.arg("my-program")
144-
.wrap("setarch", ["x86_64", "-R"])
144+
.wrap("setarch", ["x86_64", "--addr-no-randomize"])
145145
.wrap("sudo", ["-n"]);
146146
assert_eq!(
147147
builder.as_command_line(),
148-
"sudo -n setarch x86_64 -R valgrind my-program"
148+
"sudo -n setarch x86_64 --addr-no-randomize valgrind my-program"
149149
);
150150
}
151151

src/executor/valgrind/measure.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ pub async fn measure(
9797

9898
// Create the command
9999
let mut cmd = Command::new("setarch");
100-
cmd.arg(ARCH).arg("-R");
100+
cmd.arg(ARCH).arg("--addr-no-randomize");
101101
// Configure the environment
102102
cmd.envs(get_base_injected_env(
103103
RunnerMode::Simulation,

0 commit comments

Comments
 (0)