Test Run By maksim on Sat Aug 5 10:48:22 2017 Native configuration is x86_64-pc-linux-gnu === gdb tests === Schedule of variations: unix Running target unix Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target. Using /usr/share/dejagnu/config/unix.exp as generic interface file for target. Using /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file. Running /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.python/py-infthread.exp ... get_compiler_info: gcc-4-8-4 Executing on host: gcc -c -g -o /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/outputs/gdb.python/py-infthread/py-infthread0.o /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.python/py-infthread.c (timeout = 300) spawn gcc -c -g -o /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/outputs/gdb.python/py-infthread/py-infthread0.o /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.python/py-infthread.c Executing on host: gcc /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/outputs/gdb.python/py-infthread/py-infthread0.o -g -lm -o /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/outputs/gdb.python/py-infthread/py-infthread (timeout = 300) spawn gcc /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/outputs/gdb.python/py-infthread/py-infthread0.o -g -lm -o /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/outputs/gdb.python/py-infthread/py-infthread spawn /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/../data-directory GNU gdb (GDB) 8.0.50.20170804-git Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) set height 0 (gdb) set width 0 (gdb) dir Reinitialize source path to empty? (y or n) y Source directories searched: $cdir:$cwd (gdb) dir /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.python Source directories searched: /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.python:$cdir:$cwd (gdb) kill The program is not being run. (gdb) file /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/outputs/gdb.python/py-infthread/py-infthread Reading symbols from /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/outputs/gdb.python/py-infthread/py-infthread...done. (gdb) spawn /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/../data-directory GNU gdb (GDB) 8.0.50.20170804-git Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) set height 0 (gdb) set width 0 (gdb) dir Reinitialize source path to empty? (y or n) y Source directories searched: $cdir:$cwd (gdb) dir /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.python Source directories searched: /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.python:$cdir:$cwd (gdb) kill The program is not being run. (gdb) file /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/outputs/gdb.python/py-infthread/py-infthread Reading symbols from /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/outputs/gdb.python/py-infthread/py-infthread...done. (gdb) python print ('test') test (gdb) python print (sys.version_info[0]) 2 (gdb) python print (sys.version_info[1]) 7 (gdb) delete breakpoints (gdb) info breakpoints No breakpoints or watchpoints. (gdb) break main Breakpoint 1 at 0x40052b: file /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.python/py-infthread.c, line 13. (gdb) run Starting program: /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/outputs/gdb.python/py-infthread/py-infthread warning: the debug information found in "/lib64/ld-2.19.so" does not match "/lib64/ld-linux-x86-64.so.2" (CRC mismatch). Breakpoint 1, main (argc=1, argv=0x7fffffffe108) at /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.python/py-infthread.c:13 13 return f1 (1, 2); (gdb) python gdb.selected_thread ().inferior (gdb) PASS: gdb.python/py-infthread.exp: test gdb.selected_thread python gdb.selected_thread ().inferior (gdb) PASS: gdb.python/py-infthread.exp: test gdb.selected_thread python import gc; gc.collect() (gdb) PASS: gdb.python/py-infthread.exp: test InferiorThread.inferior python gdb.selected_thread ().inferior (gdb) PASS: gdb.python/py-infthread.exp: test gdb.selected_thread python gdb.selected_thread ().inferior (gdb) PASS: gdb.python/py-infthread.exp: test gdb.selected_thread python i0 = gdb.selected_thread ().inferior (gdb) PASS: gdb.python/py-infthread.exp: test InferiorThread.inferior python t0 = gdb.selected_thread () (gdb) PASS: gdb.python/py-infthread.exp: test gdb.selected_thread python print (t0) (gdb) PASS: gdb.python/py-infthread.exp: verify InferiorThread object python print ('result = %s' % t0.num) result = 1 (gdb) PASS: gdb.python/py-infthread.exp: test InferiorThread.num python print ('result = %s' % t0.global_num) result = 1 (gdb) PASS: gdb.python/py-infthread.exp: test InferiorThread.global_num python print ('result = %s' % str (t0.ptid)) result = (7890, 7890, 0) (gdb) PASS: gdb.python/py-infthread.exp: test InferiorThread.ptid python print ('result = %s' % i0.num) result = 1 (gdb) PASS: gdb.python/py-infthread.exp: test Inferior.num python name = gdb.selected_thread().name (gdb) PASS: gdb.python/py-infthread.exp: get supplied name of current thread python gdb.selected_thread().name = 'hibob' (gdb) PASS: gdb.python/py-infthread.exp: set name of current thread python print (gdb.selected_thread().name) hibob (gdb) PASS: gdb.python/py-infthread.exp: check name of current thread python gdb.selected_thread().name = None (gdb) PASS: gdb.python/py-infthread.exp: reset name of current thread python print (gdb.selected_thread().name == name) True (gdb) PASS: gdb.python/py-infthread.exp: check name of current thread again python print ('result = %s' % t0.is_stopped ()) result = True (gdb) PASS: gdb.python/py-infthread.exp: test InferiorThread.is_stopped python print ('result = %s' % t0.is_running ()) result = False (gdb) PASS: gdb.python/py-infthread.exp: test InferiorThread.is_running python print ('result = %s' % t0.is_exited ()) result = False (gdb) PASS: gdb.python/py-infthread.exp: test InferiorThread.is_exited python print ('result = %s' % t0.is_valid ()) result = True (gdb) PASS: gdb.python/py-infthread.exp: test InferiorThread.is_valid kill inferior 1 (gdb) PASS: gdb.python/py-infthread.exp: kill inferior 1 python print ('result = %s' % t0.is_valid ()) result = False (gdb) PASS: gdb.python/py-infthread.exp: test InferiorThread.is_valid testcase /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.python/py-infthread.exp completed in 2 seconds === gdb Summary === # of expected passes 23 Executing on host: /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/../data-directory --version (timeout = 300) spawn /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/../data-directory --version GNU gdb (GDB) 8.0.50.20170804-git Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/../../gdb/gdb version 8.0.50.20170804-git -nw -nx -data-directory /home/maksim/sources/obj-binutils-gdb/gdb/testsuite/../data-directory runtest completed at Sat Aug 5 10:48:24 2017