Skip to content

Commit

Permalink
Convert rewrite_macros to Criterion
Browse files Browse the repository at this point in the history
  • Loading branch information
sim-immunant committed Sep 27, 2023
1 parent 95fd3ff commit 3588719
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions rewriter/tests/rewrite_macros/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ define_shared_lib(
define_test(
SRCS main.c
NEEDS_LD_WRAP
CRITERION_TEST
)

define_ia2_wrapper()
3 changes: 2 additions & 1 deletion rewriter/tests/rewrite_macros/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ RUN: cat main.c | FileCheck --match-full-lines --check-prefix=REWRITER %s
#include "lib.h"
#include <stddef.h>
#include <ia2.h>
#include <criterion/criterion.h>

INIT_RUNTIME(1);
#define IA2_COMPARTMENT 1
#include <ia2_compartment_init.inc>

int main() {
Test(rewrite_macros, main) {
init_actions();

// The next two lines use macros that cannot be easily rewritten so the
Expand Down

0 comments on commit 3588719

Please sign in to comment.