]> git.ipfire.org Git - thirdparty/automake.git/commit
Coverage and fixes for Condition.pm.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 18 Oct 2009 10:01:46 +0000 (12:01 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 18 Oct 2009 15:37:31 +0000 (17:37 +0200)
commit8fef9e8391f113bd733d4b3c3be7140d3d14ae91
tree3ef1370beddaf52718a3705000657f44e6dec8d3
parent75a4471072041fdcff422076b8032c3b1dd77a10
Coverage and fixes for Condition.pm.

* lib/Automake/Condition.pm (new): Catch common programming
errors better by checking type of passed argument before
munging them to all be strings through split.
* lib/Automake/tests/Condition.pl (test_basics): Also test
->human.
(test_merge): New function, test ->merge, ->merge_conds,
->strip.
* lib/Automake/tests/Condition-t.pl (test_basics, test_merge):
Likewise changes, but including state copies across thread
creation.
* lib/Automake/tests/Cond2.pl: New test for programming error.
* lib/Automake/tests/Cond3.pl: Likewise.
* lib/Automake/tests/Makefile.am (TESTS, XFAIL_TESTS): Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
lib/Automake/Condition.pm
lib/Automake/tests/Cond2.pl [new file with mode: 0644]
lib/Automake/tests/Cond3.pl [new file with mode: 0644]
lib/Automake/tests/Condition-t.pl
lib/Automake/tests/Condition.pl
lib/Automake/tests/Makefile.am
lib/Automake/tests/Makefile.in