Projet

Général

Profil

Révision ebe5be1d

IDebe5be1d0656b52727ffcdb2cd4c9d15b7a582e4
Parent 29e6f53c
Enfant 7c62b9b6

Ajouté par Lars Kruse il y a plus de 7 ans

tests: verify executable flag for plugins with shebang

Voir les différences:

t/test.t
48 48
    my ( $file, $filename, $interpreter, $arguments ) = @_;
49 49
    use v5.10.1;
50 50

  
51
    if ( $interpreter =~ m{/bin/sh} ) {
51
    if ( ! -x $file ) {
52
        # missing executable flag
53
        diag(
54
            sprintf("\nFile '%s' lacks executable permission bits. Maybe try 'chmod +x $file'?\n",
55
                    $file)
56
        );
57
    }
58
    elsif ( $interpreter =~ m{/bin/sh} ) {
52 59
        subtest $filename => sub {
53 60
            plan tests => 2;
54 61
            run_check(

Formats disponibles : Unified diff