summaryrefslogtreecommitdiffstats
path: root/xt/lib/Bugzilla/Test/Search/FieldTest.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-09 03:47:39 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-09 03:47:39 +0200
commit3f40ba04a7bdea2f3f84202006cc55054d647afb (patch)
treeba24883638992e6011825c413611741382150ecd /xt/lib/Bugzilla/Test/Search/FieldTest.pm
parent38728c2f489618965067c133f31a12aa2fb88615 (diff)
downloadbugzilla-3f40ba04a7bdea2f3f84202006cc55054d647afb.tar.gz
bugzilla-3f40ba04a7bdea2f3f84202006cc55054d647afb.tar.xz
Bug 577588: xt/seach.t was sometimes not properly translating special
<> values into the actual bug value, for searching r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'xt/lib/Bugzilla/Test/Search/FieldTest.pm')
-rw-r--r--xt/lib/Bugzilla/Test/Search/FieldTest.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/xt/lib/Bugzilla/Test/Search/FieldTest.pm b/xt/lib/Bugzilla/Test/Search/FieldTest.pm
index 4c43e34ed..b0307dec4 100644
--- a/xt/lib/Bugzilla/Test/Search/FieldTest.pm
+++ b/xt/lib/Bugzilla/Test/Search/FieldTest.pm
@@ -406,6 +406,10 @@ sub _translate_value {
foreach my $number (1..NUM_BUGS) {
$value = $self->_translate_value_for_bug($number, $value);
}
+ # Sanity check to make sure that none of the <> stuff was left in.
+ if ($value =~ /<\d/) {
+ die $self->name . ": value untranslated: $value\n";
+ }
return $value;
}