Make UNRECOVERABLE_IF more verbose in ULTs

Change-Id: Ia16781be7deb12c2eac6802f5f2459186b99ee08
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2020-01-16 10:43:31 +01:00
committed by sys_ocldev
parent 763b08c9a5
commit e22c90fa5d

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2017-2019 Intel Corporation
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -7,12 +7,14 @@
#include "core/helpers/debug_helpers.h"
#include <exception>
#include <stdexcept>
#include <string>
namespace NEO {
void debugBreak(int line, const char *file) {
}
void abortUnrecoverable(int line, const char *file) {
throw std::exception();
std::string message = "Abort was called at " + std::to_string(line) + " line in file " + file;
throw std::runtime_error(message);
}
} // namespace NEO
} // namespace NEO