Skip to content

Commit

Permalink
(tools/toml-translator) use new requires
Browse files Browse the repository at this point in the history
  • Loading branch information
bensimner committed Jan 2, 2025
1 parent 17709d0 commit 6ca1533
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/litmus-toml-translator/src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ pub fn write_output(litmus: Litmus, keep_histogram: bool) -> Result<String> {
format!("\n .interesting_result = (uint64_t[]){{{v}}},")
};

let requires_pgtable = if litmus.mmu_on { "1" } else { "0" };
let requires_pgtable = if litmus.mmu_on { ".requires=REQUIRES_PGTABLE," } else { "" };

let out = format!(
"\
Expand Down Expand Up @@ -405,7 +405,7 @@ litmus_test_t {sanitised_name} = {{
INIT_STATE({init_state}),\
{interesting_result}
{thread_sync_handler_refs}
.requires_pgtable = {requires_pgtable},
{requires_pgtable}
.start_els = (int[]){{{start_els}}},
}};
",
Expand Down

0 comments on commit 6ca1533

Please sign in to comment.