Skip to content

Commit 8db716a

Browse files
committed
tests: make the lib component pkey 2 not 0
1 parent 99cc91c commit 8db716a

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

tests/post_condition/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# Build the wrapped lib
2-
define_shared_lib(SRCS dav1d.c)
2+
define_shared_lib(
3+
SRCS dav1d.c
4+
PKEY 2
5+
)
36

47
# Build the test
58
define_test(
69
SRCS main.c
10+
PKEY 1
711
NEEDS_LD_WRAP
812
CRITERION_TEST
913
)

tests/post_condition/dav1d.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ RUN: cat dav1d_call_gates_1.ld | FileCheck --check-prefix=LINKARGS %s
66
#include <ia2_test_runner.h>
77
#include <signal.h>
88

9+
#define IA2_COMPARTMENT 2
10+
#include <ia2_compartment_init.inc>
11+
912
bool corrupt_stride IA2_SHARED_DATA = false;
1013

1114
// LINKARGS: --wrap=dav1d_get_picture

tests/post_condition/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN: sh -c 'if [ ! -s "dav1d_call_gates_0.ld" ]; then echo "No link args as expe
99
#include <ia2_test_runner.h>
1010
#include <signal.h>
1111

12-
INIT_RUNTIME(1);
12+
INIT_RUNTIME(2);
1313
#define IA2_COMPARTMENT 1
1414
#include <ia2_compartment_init.inc>
1515

0 commit comments

Comments
 (0)