EXSWHTEC-344 - Refactor and extend tests for hipDrvGetErrorName and hipDrvGetErrorString #426
Change-Id: I4eb57eeaff6e5d723e3e236e07d4320430a4582a
[ROCm/hip-tests commit: fb9a9a9a03]
Dieser Commit ist enthalten in:
committet von
Rakesh Roy
Ursprung
d339e17a53
Commit
1195ab7a48
@@ -20,10 +20,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
|
||||
#include "errorEnumerators.h"
|
||||
#include <hip_test_common.hh>
|
||||
#include <hip/hip_runtime_api.h>
|
||||
|
||||
#include "error_handling_common.hh"
|
||||
|
||||
/**
|
||||
* @addtogroup hipGetErrorName hipGetErrorName
|
||||
@@ -49,6 +48,7 @@ TEST_CASE("Unit_hipGetErrorName_Positive_Basic") {
|
||||
const char* error_string = nullptr;
|
||||
const auto enumerator =
|
||||
GENERATE(from_range(std::begin(kErrorEnumerators), std::end(kErrorEnumerators)));
|
||||
INFO("Error: " << enumerator);
|
||||
|
||||
error_string = hipGetErrorName(enumerator);
|
||||
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren