Permalink
Browse files

Fixed gsl_pkgconfig_location test failure for system install type

  • Loading branch information...
1 parent 2c864fc commit d59fb7cfa34ecd2a4757c595c6b768f107834f89 @jberger jberger committed Oct 26, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 t/locations.t
View
7 t/locations.t
@@ -16,9 +16,12 @@ if (Alien::GSL::ConfigData->config('location') eq 'share_dir') {
ok( -e Alien::GSL::gsl_prefix, "gsl_prefix directory exists");
## gsl_pkgconfig_location
-{
+SKIP: {
+ my $system_install = Alien::GSL::ConfigData->config('location') eq 'system';
+ skip "Don't test gsl_pkgconfig_location for 'system' install type", 2 if $system_install;
+
ok( -e Alien::GSL::gsl_pkgconfig_location, "gsl_pkgconfig_location directory exists");
- local $CWD = Alien::GSL::gsl_pkgconfig_location;
+ local $CWD = Alien::GSL::gsl_pkgconfig_location() unless $system_install;
ok( -e 'gsl.pc', "Found gsl.pc" );
}

0 comments on commit d59fb7c

Please sign in to comment.