diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-07-09 03:47:39 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-07-09 03:47:39 +0200 |
commit | 3f40ba04a7bdea2f3f84202006cc55054d647afb (patch) | |
tree | ba24883638992e6011825c413611741382150ecd /xt/lib/Bugzilla/Test/Search/FieldTest.pm | |
parent | 38728c2f489618965067c133f31a12aa2fb88615 (diff) | |
download | bugzilla-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.pm | 4 |
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; } |