|
|
Choosing A Webhost: |
Re: Possible RT testing bug: msg#00047bug-tracking.request-tracker.devel
On Wed, Mar 09, 2005 at 05:07:44PM -0500, Jesse Vincent wrote: > > > > On Wed, Mar 09, 2005 at 04:29:15PM -0500, Todd Chapman wrote: > > RT::Ticket::Create returns an array, so when evaluated in > > a scalar context it is always true. Correct? > > > > If so, isn't this testing code from Tickets_Overlay_SQL flawed? > > > > ok( $t->Create(Queue => 'General', Subject => $string), "Ticket Created"); > > Yep. that looks flawed. > That type of problem looks to be somewhat common in the RT testing code. It has bugged me a little why RT doesn't use wantarray or put error messages in global vaiables, so that it is easier to call Create and the like in scalar context.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Possible RT testing bug, Todd Chapman |
|---|---|
| Next by Date: | Re: Possible RT testing bug, Jesse Vincent |
| Previous by Thread: | Re: Possible RT testing bug, Jesse Vincent |
| Next by Thread: | Re: Possible RT testing bug, Jesse Vincent |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |