tests/tcg: Fix the /proc/self/mem probing in the PROT_NONE gdbstub test
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 31 Jan 2024 22:02:18 +0000 (23:02 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 3 Feb 2024 06:46:10 +0000 (16:46 +1000)
commitda4038d2da6d3a3d5f86665bd51b2ba49df5d652
tree2adef13419ab78ea870def32d84356c5abb8f577
parent3b916140043e2757dd8d51ec641a6885e960e6ca
tests/tcg: Fix the /proc/self/mem probing in the PROT_NONE gdbstub test

The `if not probe_proc_self_mem` check never passes, because
probe_proc_self_mem is a function object, which is a truthy value.
Add parentheses in order to perform a function call.

Fixes: dc84d50a7f9b ("tests/tcg: Add the PROT_NONE gdbstub test")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-Id: <20240131220245.235993-1-iii@linux.ibm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tests/tcg/multiarch/gdbstub/prot-none.py