summaryrefslogtreecommitdiffstats
path: root/xt/lib/Bugzilla/Test/Search.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-16 08:26:06 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-16 08:26:06 +0200
commit2bd4ef390187c2d793d1167df4bc2424a3c66d80 (patch)
treeac6459ebf19c711445b511f26e8dfda49f5dfb71 /xt/lib/Bugzilla/Test/Search.pm
parentdbaf1c3aaf975ed78d8e8538b2df18ab9f47654b (diff)
downloadbugzilla-2bd4ef390187c2d793d1167df4bc2424a3c66d80.tar.gz
bugzilla-2bd4ef390187c2d793d1167df4bc2424a3c66d80.tar.xz
Bug 579243: Also test NOT (negated) charts in xt/search.t
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'xt/lib/Bugzilla/Test/Search.pm')
-rw-r--r--xt/lib/Bugzilla/Test/Search.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/xt/lib/Bugzilla/Test/Search.pm b/xt/lib/Bugzilla/Test/Search.pm
index 87df927ca..624db8e2c 100644
--- a/xt/lib/Bugzilla/Test/Search.pm
+++ b/xt/lib/Bugzilla/Test/Search.pm
@@ -99,7 +99,9 @@ sub num_tests {
? ($top_combinations * $all_combinations) : 0;
# And AND tests, which means we run 2x $join_tests;
$join_tests = $join_tests * 2;
- my $operator_field_tests = ($top_combinations + $join_tests) * TESTS_PER_RUN;
+ # Also, because of NOT tests, we run 2x $top_combinations.
+ my $basic_tests = $top_combinations * 2;
+ my $operator_field_tests = ($basic_tests + $join_tests) * TESTS_PER_RUN;
# Then we test each field/operator combination for SQL injection.
my @injection_values = INJECTION_TESTS;