Skip to content

Commit d5871ba

Browse files
authored
Fix sanitizer (#397)
`--gtest_also_run_disabled_tests` can't work with `std::terminate`
1 parent 72de98f commit d5871ba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/run_tests.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __get_project_path():
4343
@staticmethod
4444
def __source_script(script_path):
4545
if platform.system() == "Windows":
46-
return
46+
return {}
4747
command = f"bash -c 'source {script_path} && env'"
4848
result = subprocess.run(command, stdout=subprocess.PIPE, shell=True, text=True)
4949
if result.returncode == 0:
@@ -72,8 +72,7 @@ def __run_exec(command):
7272

7373
@staticmethod
7474
def __get_gtest_settings(repeats_count):
75-
command = "--gtest_also_run_disabled_tests "
76-
command += f"--gtest_repeat={repeats_count} "
75+
command = f"--gtest_repeat={repeats_count} "
7776
command += "--gtest_recreate_environments_when_repeating "
7877
command += "--gtest_color=0 "
7978
return command

0 commit comments

Comments
 (0)