drgn/tests
Omar Sandoval f56b2f117a tests: linux_kernel: fix section mismatch warning in test module
The test kmod build has the following warning that I somehow didn't
notice before:

  WARNING: modpost: /home/osandov/repos/drgn-main/tests/linux_kernel/kmod/drgn_test.o(.init.text+0x3ac): Section mismatch in reference from the function init_module() to the function .exit.text:drgn_test_exit()
  The function __init init_module() references
  a function __exit drgn_test_exit().
  This is often seen when error handling in the init function
  uses functionality in the exit path.
  The fix is often to remove the __exit annotation of
  drgn_test_exit() so it may be used outside an exit section.

Remove the __exit annotation as suggested.

Signed-off-by: Omar Sandoval <osandov@osandov.com>
2022-07-06 18:06:18 -07:00
..
helpers tests: move Linux kernel helper tests under tests/linux_kernel 2022-05-17 14:20:34 -07:00
linux_kernel tests: linux_kernel: fix section mismatch warning in test module 2022-07-06 18:06:18 -07:00
__init__.py tests: remove no-op setUp() method 2022-01-22 11:12:52 -08:00
assembler.py Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
dwarf.py Track byte order in scalar types instead of objects 2021-02-19 21:41:29 -08:00
dwarfwriter.py Fix some more flake8 errors 2022-05-17 15:23:42 -07:00
elf.py tests: add tests for ELF symbols 2021-11-19 17:04:20 -08:00
elfwriter.py tests: use NOBITS section for ELF symbols 2021-12-17 16:46:12 -08:00
libdrgn.py Enable prog.type to work with classes 2022-02-22 14:55:23 -08:00
sample.coredump.zst Implement a new API for representing threads 2022-01-11 17:28:17 -08:00
test_docs.py tests: make all tests inherit from drgn's TestCase class 2022-01-11 17:28:17 -08:00
test_dwarf.py Add support for UTF character base types 2022-07-06 09:44:16 -07:00
test_language_c.py Enable prog.type to work with classes 2022-02-22 14:55:23 -08:00
test_lexer.py tests: make all tests inherit from drgn's TestCase class 2022-01-11 17:28:17 -08:00
test_object.py libdrgn: support reference and absent objects with float types which aren't 32 or 64 bits 2022-07-06 15:47:18 -07:00
test_path.py tests: make all tests inherit from drgn's TestCase class 2022-01-11 17:28:17 -08:00
test_platform.py tests: make all tests inherit from drgn's TestCase class 2022-01-11 17:28:17 -08:00
test_program.py Enable prog.type to work with classes 2022-02-22 14:55:23 -08:00
test_python.py tests: make all tests inherit from drgn's TestCase class 2022-01-11 17:28:17 -08:00
test_serialize.py tests: make all tests inherit from drgn's TestCase class 2022-01-11 17:28:17 -08:00
test_symbol.py Add methods to return multiple matching symbols 2022-01-15 11:44:33 -08:00
test_thread.py tests: find tests/sample.coredump.zst more robustly 2022-03-03 11:53:21 -08:00
test_type.py Update copyright headers to Meta 2021-11-21 15:59:44 -08:00
test_util.py tests: make all tests inherit from drgn's TestCase class 2022-01-11 17:28:17 -08:00