Skip to content

Commit

Permalink
testsuite: linux: ibt-2: Do not check for livepatch.h
Browse files Browse the repository at this point in the history
We don't include this file anymore, now we output the KLP_RELOC_SYMBOL
macro instead. The test is now passing.

Signed-off-by: Marcos Paulo de Souza <[email protected]>
  • Loading branch information
marcosps committed Jun 14, 2024
1 parent 8376ab2 commit f9f4637
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions testsuite/linux/ibt-2.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
/* { dg-options "-DCE_EXTRACT_FUNCTIONS=f -DCE_SYMVERS_PATH=../testsuite/linux/Modules.symvers -DCE_RENAME_SYMBOLS -nostdinc -I../testsuite/linux -DKBUILD_MODNAME=libcrc32c -D__USE_IBT__ -D__KERNEL__ -DCE_KEEP_INCLUDES" } */

/* Check why the include is not being output. */
/* { dg-xfail }*/

typedef unsigned int u32;

u32 crc32c(u32 crc, const void *address, unsigned int length);
Expand All @@ -17,7 +14,6 @@ int f(void)
return 0;
}

/* { dg-final { scan-tree-dump "#include <linux/livepatch.h>" } } */
/* { dg-final { scan-tree-dump "u32 klpe_crc32c|u32 \(klpe_crc32c\)" } } */
/* { dg-final { scan-tree-dump "KLP_RELOC_SYMBOL\(libcrc32c, libcrc32c, crc32c\)" } } */
/* { dg-final { scan-tree-dump-not "\(\*klpe_crc32c\)" } } */

0 comments on commit f9f4637

Please sign in to comment.