diff options
author | Matthias Paulmier <matthias.paulmier@etu.u-bordeaux.fr> | 2018-06-26 15:35:17 +0200 |
---|---|---|
committer | Matthias Paulmier <matthias.paulmier@etu.u-bordeaux.fr> | 2018-06-26 15:35:17 +0200 |
commit | dad5b2c52d5d8341585e39579068756e2ac7d931 (patch) | |
tree | 38b8915da0e45a7c4f67aff9d2ec40d22b70c2f3 /t/pm/DisjConditions.pl | |
parent | 45e7e85f0bc4798ef6ff7cbd3443c55aa642774b (diff) | |
download | automake-dad5b2c52d5d8341585e39579068756e2ac7d931.tar.gz |
t/pm: Regroup tests by module
Since we don't have to worry anymore about the tests "fataling" out we can
put the then separated tests into the appropriate files.
Diffstat (limited to 't/pm/DisjConditions.pl')
-rw-r--r-- | t/pm/DisjConditions.pl | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/t/pm/DisjConditions.pl b/t/pm/DisjConditions.pl index f4075b0be..bdcafd2bb 100644 --- a/t/pm/DisjConditions.pl +++ b/t/pm/DisjConditions.pl @@ -380,8 +380,32 @@ sub test_ambig () return 0; } +sub test_bad_declarations +{ + my $failed; + my $cond = new Automake::Condition ('TRUE'); + my $cond2 = new Automake::DisjConditions ($cond); + + eval { new Automake::DisjConditions ($cond2) }; + + warn $@ if $@; + $failed = 1 unless $@; + + $@ = ''; + + my $cond3 = new Automake::Condition ("COND1_TRUE"); + + eval { new Automake::DisjConditions ("$cond3") }; + + warn $@ if $@; + $failed = 1 unless $@; + + return $failed; +} + exit (test_basics || test_invert || test_simplify || test_sub_conditions - || test_ambig); + || test_ambig + || test_bad_declarations); |