summaryrefslogtreecommitdiff
path: root/utests/utest_assert.cpp
diff options
context:
space:
mode:
authorLu Guanqun <guanqun.lu@intel.com>2013-04-10 16:12:08 +0800
committerZhigang Gong <zhigang.gong@linux.intel.com>2013-04-11 16:47:32 +0800
commitb990c0fc2d9b973b76e5e9574be127329462ab97 (patch)
treecbfe1e3360a247289bce6ae01ef43aebc0fb8148 /utests/utest_assert.cpp
parent6d2c0af1db2586469eb9d1d1f07232dc2ae8fa8e (diff)
downloadbeignet-b990c0fc2d9b973b76e5e9574be127329462ab97.tar.gz
throw exception instead of just assert
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>
Diffstat (limited to 'utests/utest_assert.cpp')
-rw-r--r--utests/utest_assert.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/utests/utest_assert.cpp b/utests/utest_assert.cpp
index fe3a99c1..f3b9a006 100644
--- a/utests/utest_assert.cpp
+++ b/utests/utest_assert.cpp
@@ -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);
}