kpatch/test/unit/x86_64/convert-global-local.test
Josh Poimboeuf 4c1184dcf7 test/unit: add a library for common functions
I placed the library in the top-level test directory, as the same
assertions could also be used by the integration tests once we rework
them a bit.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
2018-04-20 08:16:20 -05:00

10 lines
141 B
Bash
Executable File

#!/bin/bash
source $KPATCH_TEST_LIBRARY
assert_num_funcs 1
bind=$(nm $1 |awk '/__kmalloc/ {print $2}')
[[ $bind = 't' ]] || exit 1
exit 0