[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 34/57] tests/tcg: Fix the /proc/self/mem probing in the PROT_NONE
From: |
Richard Henderson |
Subject: |
[PULL 34/57] tests/tcg: Fix the /proc/self/mem probing in the PROT_NONE gdbstub test |
Date: |
Fri, 2 Feb 2024 15:50:13 +1000 |
From: Ilya Leoshkevich <iii@linux.ibm.com>
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/tcg/multiarch/gdbstub/prot-none.py
b/tests/tcg/multiarch/gdbstub/prot-none.py
index e829d3ebc5..7e264589cb 100644
--- a/tests/tcg/multiarch/gdbstub/prot-none.py
+++ b/tests/tcg/multiarch/gdbstub/prot-none.py
@@ -20,7 +20,7 @@ def probe_proc_self_mem():
def run_test():
"""Run through the tests one by one"""
- if not probe_proc_self_mem:
+ if not probe_proc_self_mem():
print("SKIP: /proc/self/mem is not usable")
exit(0)
gdb.Breakpoint("break_here")
--
2.34.1
- [PULL 24/57] target/riscv: Populate CPUClass.mmu_index, (continued)
- [PULL 24/57] target/riscv: Populate CPUClass.mmu_index, Richard Henderson, 2024/02/02
- [PULL 25/57] target/rx: Populate CPUClass.mmu_index, Richard Henderson, 2024/02/02
- [PULL 28/57] target/sh4: Populate CPUClass.mmu_index, Richard Henderson, 2024/02/02
- [PULL 30/57] target/tricore: Populate CPUClass.mmu_index, Richard Henderson, 2024/02/02
- [PULL 27/57] target/s390x: Populate CPUClass.mmu_index, Richard Henderson, 2024/02/02
- [PULL 29/57] target/sparc: Populate CPUClass.mmu_index, Richard Henderson, 2024/02/02
- [PULL 31/57] target/xtensa: Populate CPUClass.mmu_index, Richard Henderson, 2024/02/02
- [PULL 26/57] target/s390x: Split out s390x_env_mmu_index, Richard Henderson, 2024/02/02
- [PULL 32/57] include/exec: Implement cpu_mmu_index generically, Richard Henderson, 2024/02/02
- [PULL 33/57] include/exec: Change cpu_mmu_index argument to CPUState, Richard Henderson, 2024/02/02
- [PULL 34/57] tests/tcg: Fix the /proc/self/mem probing in the PROT_NONE gdbstub test,
Richard Henderson <=
- [PULL 35/57] tcg/loongarch64: Set vector registers call clobbered, Richard Henderson, 2024/02/02
- [PULL 36/57] target/sparc: Use tcg_gen_qemu_{ld, st}_i128 for ASI_M_BCOPY, Richard Henderson, 2024/02/02
- [PULL 38/57] target/sparc: Remove gen_dest_fpr_F, Richard Henderson, 2024/02/02
- [PULL 37/57] target/sparc: Use tcg_gen_qemu_{ld, st}_i128 for ASI_M_BFILL, Richard Henderson, 2024/02/02
- [PULL 39/57] target/sparc: Introduce gen_{load,store}_fpr_Q, Richard Henderson, 2024/02/02
- [PULL 40/57] target/sparc: Inline FNEG, FABS, Richard Henderson, 2024/02/02
- [PULL 42/57] target/sparc: Use i128 for FADDq, FSUBq, FMULq, FDIVq, Richard Henderson, 2024/02/02
- [PULL 43/57] target/sparc: Use i128 for FqTOs, FqTOi, Richard Henderson, 2024/02/02
- [PULL 44/57] target/sparc: Use i128 for FqTOd, FqTOx, Richard Henderson, 2024/02/02
- [PULL 41/57] target/sparc: Use i128 for FSQRTq, Richard Henderson, 2024/02/02