mirror of https://github.com/xemu-project/xemu.git
21 lines
445 B
Python
21 lines
445 B
Python
from __future__ import print_function
|
|
#
|
|
# Test auxiliary vector is loaded via gdbstub
|
|
#
|
|
# This is launched via tests/guest-debug/run-test.py
|
|
#
|
|
|
|
import gdb
|
|
from test_gdbstub import main, report
|
|
|
|
|
|
def run_test():
|
|
"Run through the tests one by one"
|
|
|
|
auxv = gdb.execute("info auxv", False, True)
|
|
report(isinstance(auxv, str), "Fetched auxv from inferior")
|
|
report(auxv.find("sha1"), "Found test binary name in auxv")
|
|
|
|
|
|
main(run_test)
|