Skip to content

Commit 009d4e9

Browse files
regan-amdassistant-librarian[bot]
authored andcommitted
[rocm-libraries] ROCm/rocm-libraries#3662 (commit 58b4b15)
[hipfft-test] add omitted references in catch blocks in hipfftw tests (#3662) ## Motivation Self-explanatory title (omissions in original implementations). ## Technical Details Self-explanatory. ## Test Plan Current tests suffice. ## Test Result Tests pass. ## Submission Checklist - [x] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
1 parent b503588 commit 009d4e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clients/tests/hipfftw_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,7 +1362,7 @@ namespace
13621362
{
13631363
GTEST_FAIL() << "undefined function pointers detected. Error info: " << e.what();
13641364
}
1365-
catch(const std::runtime_error e)
1365+
catch(const std::runtime_error& e)
13661366
{
13671367
if(log_content.empty() && exception_logger)
13681368
log_content = exception_logger->get_log();
@@ -2012,14 +2012,14 @@ namespace
20122012
{
20132013
GTEST_FAIL() << "undefined function pointers detected. Error info: " << e.what();
20142014
}
2015-
catch(const hip_runtime_error e)
2015+
catch(const hip_runtime_error& e)
20162016
{
20172017
if(skip_runtime_fails)
20182018
GTEST_SKIP() << e.what() << "\nError code: " << e.hip_error << ".";
20192019
else
20202020
GTEST_FAIL() << e.what() << "\nError code: " << e.hip_error << ".";
20212021
}
2022-
catch(const std::runtime_error e)
2022+
catch(const std::runtime_error& e)
20232023
{
20242024
GTEST_FAIL() << e.what();
20252025
}

0 commit comments

Comments
 (0)