File: GnomeVFSResolve.t

package info (click to toggle)
libgnome2-vfs-perl 1.081-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 680 kB
  • sloc: perl: 1,195; ansic: 457; makefile: 2
file content (31 lines) | stat: -rw-r--r-- 787 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/perl -w
use strict;
use Gnome2::VFS;

use Test::More;

# $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-VFS/t/GnomeVFSResolve.t,v 1.2 2005/03/07 21:16:45 kaffeetisch Exp $

unless (-d "$ENV{ HOME }/.gnome") {
  plan(skip_all => "You have no ~/.gnome");
}

unless (Gnome2::VFS -> CHECK_VERSION(2, 8, 0)) {
  plan(skip_all => "This is new in 2.8");
}

plan(tests => 2);

Gnome2::VFS -> init();

###############################################################################

my $handle = Gnome2::VFS -> resolve("localhost");
isa_ok($handle, "Gnome2::VFS::Resolve::Handle");
isa_ok($handle -> next_address(), "Gnome2::VFS::Address");

$handle -> reset_to_beginning();

###############################################################################

Gnome2::VFS -> shutdown();