You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Michal Fojtik (JIRA)" <ji...@apache.org> on 2012/12/05 18:05:58 UTC
[jira] [Commented] (DTACLOUD-387) Regexp warning causing test
failure
[ 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