Skip to content

Commit d66f0c2

Browse files
authored
compiletest: ensure extra arguments are appended at the end (rust-lang#3379)
We must not mix arguments to be passed to Kani with those parsed by compiletest. Will enable use of `--cbmc-args` to increase CBMC's verbosity as needed for certain tests.
1 parent f379445 commit d66f0c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/compiletest/src/runtest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,14 +272,14 @@ impl<'test> TestCx<'test> {
272272
.arg("kani")
273273
.arg("--target-dir")
274274
.arg(self.output_base_dir().join("target"))
275-
.current_dir(parent_dir)
276-
.args(&self.config.extra_args);
275+
.current_dir(parent_dir);
277276
if test {
278277
cargo.arg("--tests");
279278
}
280279
if "expected" != self.testpaths.file.file_name().unwrap() {
281280
cargo.args(["--harness", function_name]);
282281
}
282+
cargo.args(&self.config.extra_args);
283283

284284
let proc_res = self.compose_and_run(cargo);
285285
self.verify_output(&proc_res, &self.testpaths.file);

0 commit comments

Comments
 (0)