Commit a6df9486 authored by Yadd's avatar Yadd
Browse files

Disable "file" test due to "file" changes

parent bd4a9c98
......@@ -17,8 +17,7 @@ BEGIN { use_ok('Lemonldap::NG::Common::Conf') }
my $h;
ok(
$h = new Lemonldap::NG::Common::Conf(
{
$h = new Lemonldap::NG::Common::Conf( {
type => 'File',
dirName => "t/",
}
......@@ -43,15 +42,6 @@ for ( my $i = 0 ; $i < @test ; $i++ ) {
ok( $h->store( $test[$i] ) == 1, "Test $i is stored" )
or print STDERR "$Lemonldap::NG::Common::Conf::msg $!";
$count++;
if ( -x '/usr/bin/file' ) {
eval {
open F, 'file t/lmConf-1.js |';
$_ = join( '', <F> );
close F;
ok( /(ascii|utf-?8)/si, "File is $1 encoded" );
$count++;
};
}
my $cfg;
ok( $cfg = $h->load(1), "Test $i can be read" )
or print STDERR $Lemonldap::NG::Common::Conf::msg;
......@@ -60,6 +50,6 @@ for ( my $i = 0 ; $i < @test ; $i++ ) {
$count += 2;
}
#unlink 't/lmConf-1.js';
unlink 't/lmConf-1.json';
done_testing($count);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment