master
py 19 lines 407 Bytes
Raw
1 #
2 # Test auxiliary vector is loaded via gdbstub
3 #
4 # This is launched via tests/guest-debug/run-test.py
5 #
6
7 import gdb
8 from test_gdbstub import main, report
9
10
11 def run_test():
12 "Run through the tests one by one"
13
14 auxv = gdb.execute("info auxv", False, True)
15 report(isinstance(auxv, str), "Fetched auxv from inferior")
16 report(auxv.find("sha1"), "Found test binary name in auxv")
17
18
19 main(run_test)