Browse Source

Fix SonarLint findings in TestHelper class on Windows machine

Patrick-Christopher Mattulat 11 months ago
parent
commit
7c4648d805
1 changed files with 2 additions and 2 deletions
  1. 2 2
      test/classes/TestHelper.cpp

+ 2 - 2
test/classes/TestHelper.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-05
-* Changed:         2023-05-18
+* Changed:         2023-05-24
 *
 * */
 
@@ -112,7 +112,7 @@ string TestHelper::_getWorkingDirectoryWindows()
 
   if (!GetCurrentDirectory(MAX_PATH, buffer))
   {
-    throw runtime_error{"invalid file operation!"};
+    throw TestException{"invalid file operation!"};
   }
   else
   {