From 3f40ba04a7bdea2f3f84202006cc55054d647afb Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Thu, 8 Jul 2010 18:47:39 -0700 Subject: 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) --- xt/lib/Bugzilla/Test/Search/FieldTest.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xt/lib/Bugzilla/Test/Search/FieldTest.pm') 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; } -- cgit v1.2.3-24-g4f1b