Skip to content

Commit 372446d

Browse files
committed
tests: fix unused variable
Signed-off-by: Giuseppe Scrivano <[email protected]>
1 parent 9ddddfb commit 372446d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/tests_libcrun_intelrdt.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ test_get_rdt_value ()
8484
{ \
8585
char *result = NULL; \
8686
int r = get_rdt_value (&result, L3, MB, SCHEMATA); \
87+
if (strlen (result) != r) \
88+
return 1; \
8789
int cmp = strcmp (result, EXPECTED); \
8890
free (result); \
8991
if (cmp != 0) \

0 commit comments

Comments
 (0)