deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michal Fojtik (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DTACLOUD-387) Regexp warning causing test failure
Date Wed, 05 Dec 2012 17:05:58 GMT

    [ https://issues.apache.org/jira/browse/DTACLOUD-387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510592#comment-13510592
] 

Michal Fojtik commented on DTACLOUD-387:
----------------------------------------

Dies, can you start irb and do this:

"Test" =~ /test/i

=> Does this print warning?
                
> Regexp warning causing test failure
> -----------------------------------
>
>                 Key: DTACLOUD-387
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-387
>             Project: DeltaCloud
>          Issue Type: Test
>          Components: CIMI/Frontend
>         Environment: Windows 7, ruby 1.8.7 (2012-02-08 patchlevel 358) [i386-mingw32]
>            Reporter: Dies Koper
>
> When running ruby cimi\part5_test.rb (--seed 58494):
>   2) Failure:
> test_0021_should return possible operations to be executed on a machine [json](ManipulateAMachine)
[cimi/part5_test.rb:111]:
> In stderr.
> --- expected
> +++ actual
> @@ -1 +1,2 @@
> -""
> +"./cimi/test_helper.rb:103: warning: flags ignored
> +"
> The warning comes from:
>       op_regex = Regexp.new(op, Regexp::IGNORECASE) # "add" == /add/i
> it looks like the warning is causing the test to fail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message