瀏覽代碼

Fix SonarLint findings in TestHelper class on Windows machine

Patrick-Christopher Mattulat 1 年之前
父節點
當前提交
7c4648d805
共有 1 個文件被更改,包括 2 次插入2 次删除
  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
   {