File: with-threads.t

package info (click to toggle)
libdevel-gdb-perl 2.02-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 188 kB
  • sloc: perl: 556; makefile: 6
file content (16 lines) | stat: -rw-r--r-- 392 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use Test::More ;

qx/gdb -v/ or
  plan skip_all => "cannot execute 'gdb', please use -execfile => '/full/path/to/gdb' " ;

eval "use threads; 1" or
  plan skip_all => "cannot use 'threads'" ;

plan tests => 4 ;

use_ok('Devel::GDB') ;
my $gdb = new Devel::GDB ( '-params' => '-q', '-use-tty' => '/dev/pts/123' ) ;
ok($gdb) ;
ok($gdb->{'-use-threads'}) ;
ok($gdb -> get( 'help')) ;
$gdb->end;