{"action":"created","issue":{"url":"https://api.github.com/repos/philsquared/Catch/issues/271","labels_url":"https://api.github.com/repos/philsquared/Catch/issues/271/labels{/name}","comments_url":"https://api.github.com/repos/philsquared/Catch/issues/271/comments","events_url":"https://api.github.com/repos/philsquared/Catch/issues/271/events","html_url":"https://github.com/philsquared/Catch/issues/271","id":31527844,"number":271,"title":"Never-ending loop wjhen the test case Failed","user":{"login":"dsamek","id":7298752,"avatar_url":"https://avatars.githubusercontent.com/u/7298752?v=3","gravatar_id":"","url":"https://api.github.com/users/dsamek","html_url":"https://github.com/dsamek","followers_url":"https://api.github.com/users/dsamek/followers","following_url":"https://api.github.com/users/dsamek/following{/other_user}","gists_url":"https://api.github.com/users/dsamek/gists{/gist_id}","starred_url":"https://api.github.com/users/dsamek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsamek/subscriptions","organizations_url":"https://api.github.com/users/dsamek/orgs","repos_url":"https://api.github.com/users/dsamek/repos","events_url":"https://api.github.com/users/dsamek/events{/privacy}","received_events_url":"https://api.github.com/users/dsamek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":32,"created_at":"2014-04-15T05:51:05Z","updated_at":"2015-04-13T00:54:50Z","closed_at":null,"body":"If I use this piece of code:\r\n```\r\n#define CATCH_CONFIG_MAIN\r\n#include \"catch.hpp\"\r\n\r\n#include \"TCACAVAUtilities.h\"\r\n\r\nTEST_CASE( \"TCACAVAUtilities::CreateColorFromRGB\", \"[CreateColorFromRGB]\" ) {\r\n    REQUIRE( TCACAVAUtilities::CreateColorFromRGB(0, 0, 0) == 255 );\r\n}\r\n```\r\n\r\nThe result is:\r\n```\r\nC:\\SourceCode\\CVS_ROOT\\CAVA\\develop_clean\\win_b64\\code\\bin>TCACAVACreateBaseCatalog.exe\r\nAll tests passed (1 assertion in 1 test case)\r\n```\r\n\r\nBut If I use this code:\r\n```\r\n#define CATCH_CONFIG_MAIN\r\n#include \"catch.hpp\"\r\n\r\n#include \"TCACAVAUtilities.h\"\r\n\r\nTEST_CASE( \"TCACAVAUtilities::CreateColorFromRGB\", \"[CreateColorFromRGB]\" ) {\r\n    REQUIRE( TCACAVAUtilities::CreateColorFromRGB(1, 0, 0) == 255 );\r\n    REQUIRE( TCACAVAUtilities::CreateColorFromRGB(0, 0, 0) == 255 );\r\n}\r\n```\r\n\r\nThe result is:\r\n```\r\n-------------------------------------------------------------------------------\r\nTCACAVAUtilities::CreateColorFromRGB\r\n-------------------------------------------------------------------------------\r\nC:\\SourceCode\\CVS_ROOT\\CAVA\\develop_clean\\TCACAVACatalog\\TCACAVACreateBaseCatalo\r\ng.m\\src\\TCACAVACreateBaseCatalog.cpp(6)\r\n...............................................................................\r\n\r\nC:\\SourceCode\\CVS_ROOT\\CAVA\\develop_clean\\TCACAVACatalog\\TCACAVACreateBaseCatalo\r\ng.m\\src\\TCACAVACreateBaseCatalog.cpp(7): FAILED:\r\n  REQUIRE( TCACAVAUtilities::CreateColorFromRGB(1, 0, 0) == 255 )\r\nwith expansion:\r\n  0x10000ff == 255\r\n\r\n-------------------------------------------------------------------------------\r\nTCACAVAUtilities::CreateColorFromRGB\r\n-------------------------------------------------------------------------------\r\nC:\\SourceCode\\CVS_ROOT\\CAVA\\develop_clean\\TCACAVACatalog\\TCACAVACreateBaseCatalo\r\ng.m\\src\\TCACAVACreateBaseCatalog.cpp(6)\r\n...............................................................................\r\n\r\nC:\\SourceCode\\CVS_ROOT\\CAVA\\develop_clean\\TCACAVACatalog\\TCACAVACreateBaseCatalo\r\ng.m\\src\\TCACAVACreateBaseCatalog.cpp(7): FAILED:\r\n  REQUIRE( TCACAVAUtilities::CreateColorFromRGB(1, 0, 0) == 255 )\r\nwith expansion:\r\n  0x10000ff == 255\r\n\r\n-------------------------------------------------------------------------------\r\nTCACAVAUtilities::CreateColorFromRGB\r\n-------------------------------------------------------------------------------\r\nC:\\SourceCode\\CVS_ROOT\\CAVA\\develop_clean\\TCACAVACatalog\\TCACAVACreateBaseCatalo\r\ng.m\\src\\TCACAVACreateBaseCatalog.cpp(6)\r\n...............................................................................\r\n\r\nC:\\SourceCode\\CVS_ROOT\\CAVA\\develop_clean\\TCACAVACatalog\\TCACAVACreateBaseCatalo\r\ng.m\\src\\TCACAVACreateBaseCatalog.cpp(7): FAILED:\r\n  REQUIRE( TCACAVAUtilities::CreateColorFromRGB(1, 0, 0) == 255 )\r\nwith expansion:\r\n  0x10000ff == 255\r\n\r\n-------------------------------------------------------------------------------\r\nTCACAVAUtilities::CreateColorFromRGB\r\n-------------------------------------------------------------------------------\r\nC:\\SourceCode\\CVS_ROOT\\CAVA\\develop_clean\\TCACAVACatalog\\TCACAVACreateBaseCatalo\r\ng.m\\src\\TCACAVACreateBaseCatalog.cpp(6)\r\n...............................................................................\r\n\r\nC:\\SourceCode\\CVS_ROOT\\CAVA\\develop_clean\\TCACAVACatalog\\TCACAVACreateBaseCatalo\r\ng.m\\src\\TCACAVACreateBaseCatalog.cpp(7): FAILED:\r\n  REQUIRE( TCACAVAUtilities::CreateColorFromRGB(1, 0, 0) == 255 )\r\nwith expansion:\r\n  0x10000ff == 255\r\n\r\n-------------------------------------------------------------------------------\r\nTCACAVAUtilities::CreateColorFromRGB\r\n-------------------------------------------------------------------------------\r\nC:\\SourceCode\\CVS_ROOT\\CAVA\\develop_clean\\TCACAVACatalog\\TCACAVACreateBaseCatalo\r\ng.m\\src\\TCACforrtl: error (200): program aborting due to control-C event\r\nImage              PC                Routine            Line        Source\r\n\r\nlibifcoremd.dll    00000000100BAB14  Unknown               Unknown  Unknown\r\nlibifcoremd.dll    00000000100B46B9  Unknown               Unknown  Unknown\r\nlibifcoremd.dll    00000000100A1017  Unknown               Unknown  Unknown\r\nlibifcoremd.dll    0000000010021BF8  Unknown               Unknown  Unknown\r\nlibifcoremd.dll    000000001002DDC8  Unknown               Unknown  Unknown\r\nkernel32.dll       00000000774F4803  Unknown               Unknown  Unknown\r\nkernel32.dll       00000000774B652D  Unknown               Unknown  Unknown\r\nntdll.dll          00000000776EC541  Unknown               Unknown  Unknown\r\n```\r\n\r\nThe never-ending loop which should I stop with CTRL+C.\r\n\r\nWhere is the problem ? Do I something wrong ?"},"comment":{"url":"https://api.github.com/repos/philsquared/Catch/issues/comments/92158179","html_url":"https://github.com/philsquared/Catch/issues/271#issuecomment-92158179","issue_url":"https://api.github.com/repos/philsquared/Catch/issues/271","id":92158179,"user":{"login":"kirbyfan64","id":1690697,"avatar_url":"https://avatars.githubusercontent.com/u/1690697?v=3","gravatar_id":"","url":"https://api.github.com/users/kirbyfan64","html_url":"https://github.com/kirbyfan64","followers_url":"https://api.github.com/users/kirbyfan64/followers","following_url":"https://api.github.com/users/kirbyfan64/following{/other_user}","gists_url":"https://api.github.com/users/kirbyfan64/gists{/gist_id}","starred_url":"https://api.github.com/users/kirbyfan64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirbyfan64/subscriptions","organizations_url":"https://api.github.com/users/kirbyfan64/orgs","repos_url":"https://api.github.com/users/kirbyfan64/repos","events_url":"https://api.github.com/users/kirbyfan64/events{/privacy}","received_events_url":"https://api.github.com/users/kirbyfan64/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T00:54:50Z","updated_at":"2015-04-13T00:54:50Z","body":"Considering the fact that this can be so hard to reproduce, this might be a C++ stdlib/ABI bug. Can someone who has the bug try this with libc++ or libcxxabi?"}}