diff --git a/projects/hip-tests/catch/unit/device/hipDeviceGetUuid.cc b/projects/hip-tests/catch/unit/device/hipDeviceGetUuid.cc index 42a3d8d0e5..3ba0493eca 100644 --- a/projects/hip-tests/catch/unit/device/hipDeviceGetUuid.cc +++ b/projects/hip-tests/catch/unit/device/hipDeviceGetUuid.cc @@ -134,7 +134,7 @@ TEST_CASE("Unit_hipDeviceGetUuid_From_RocmInfo") { } char command_op[BUFFER_LEN]; int j = 0; - std::string output[deviceCount]; //NOLINT + std::vector output(deviceCount); //NOLINT while (fgets(command_op, BUFFER_LEN, fpipe)) { std::string rocminfo_line(command_op); if ((std::string::npos != rocminfo_line.find("CPU-"))) {