throw exception instead of just assert
authorLu Guanqun <guanqun.lu@intel.com>
Wed, 10 Apr 2013 08:12:08 +0000 (16:12 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Thu, 11 Apr 2013 08:47:32 +0000 (16:47 +0800)
So that we know the reason of why we're failing.

Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
utests/utest_assert.cpp

index fe3a99c..f3b9a00 100644 (file)
@@ -36,7 +36,6 @@ void onFailedAssertion(const char *msg, const char *file, const char *fn, int li
                         + std::string(file)
                         + ", function " + std::string(fn)
                         + ", line " + std::string(lineString);
-  assert(0);
   throw Exception(str);
 }