summaryrefslogtreecommitdiffstats
path: root/t/helper.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-13 11:26:05 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-13 11:26:05 +0000
commit3036fe3904d6e8e7bcfe384457bbb7399f57bf7f (patch)
treed5d82e40889f643e2a982df8daa0dd740c924fd5 /t/helper.pm
parenta665e757a125d84d2164e4a14cd9a644b7f84202 (diff)
downloadurpmi-3036fe3904d6e8e7bcfe384457bbb7399f57bf7f.tar
urpmi-3036fe3904d6e8e7bcfe384457bbb7399f57bf7f.tar.gz
urpmi-3036fe3904d6e8e7bcfe384457bbb7399f57bf7f.tar.bz2
urpmi-3036fe3904d6e8e7bcfe384457bbb7399f57bf7f.tar.xz
urpmi-3036fe3904d6e8e7bcfe384457bbb7399f57bf7f.zip
new test for file conflicts
Diffstat (limited to 't/helper.pm')
-rw-r--r--t/helper.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/helper.pm b/t/helper.pm
index d7e6d802..eecf5e20 100644
--- a/t/helper.pm
+++ b/t/helper.pm
@@ -7,7 +7,7 @@ our @EXPORT = qw(need_root_and_prepare
urpmi_addmedia urpmi_removemedia urpmi_update
urpm_cmd urpmi_cmd urpmi urpme
urpmi_cfg set_urpmi_cfg_global_options
- system_
+ system_ system_should_fail
check_installed_fullnames check_installed_names check_nothing_installed
check_installed_and_remove check_installed_and_urpme
);
@@ -90,6 +90,11 @@ sub system_ {
system($cmd);
ok($? == 0, $cmd);
}
+sub system_should_fail {
+ my ($cmd) = @_;
+ system($cmd);
+ ok($? != 0, "should fail: $cmd");
+}
sub check_installed_fullnames {