File: TestBoilerplate

package info (click to toggle)
libgnome2-perl 1.045-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 608 kB
  • ctags: 12
  • sloc: perl: 1,145; ansic: 16; makefile: 4
file content (13 lines) | stat: -rw-r--r-- 394 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
skip("You don't appear to have the GNOME session manager running.", TESTS)
  unless (-d "$ENV{ HOME }/.gconfd" &&
          -d "$ENV{ HOME }/.gnome2");

skip("Couldn't initialize Gtk2", TESTS)
  unless (Gtk2 -> init_check());

$application = Gnome2::Program -> init("Test", "0.1");

skip("Couldn't connect to the session manager.", TESTS)
  unless (Gnome2::Client -> new() -> connected());

1;