Skip to content

Commit e17d94c

Browse files
authored
Fix #14026 (CI: test_valueflow_debug in test/cli/other_test.py is flaky in macos-15) (danmar#7685)
1 parent fae4e44 commit e17d94c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/cli/other_test.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,10 +1133,9 @@ def test_valueflow_debug(tmpdir):
11331133
assert exitcode == 0, stdout if stdout else stderr
11341134
if sys.platform == "win32":
11351135
stdout = stdout.replace('/', '\\')
1136-
assert stdout == '''Checking {} ...
1137-
1138-
1139-
##file {}
1136+
assert f'Checking {test_file_cpp} ...' in stdout
1137+
stdout = stdout.replace(f'Checking {test_file_cpp} ...\n', '').strip()
1138+
assert stdout == '''##file {}
11401139
2: void f2 ( )
11411140
3: {{
11421141
4: int i@var1 ; i@var1 = 0 ;
@@ -1175,8 +1174,8 @@ def test_valueflow_debug(tmpdir):
11751174
File {}
11761175
Line 6
11771176
= always 0
1178-
0 always 0
1179-
'''.format(test_file_cpp, test_file_h_2, test_file_h, test_file_cpp, test_file_h_2, test_file_h, test_file_cpp)
1177+
0 always 0'''.format(test_file_h_2, test_file_h, test_file_cpp,
1178+
test_file_h_2, test_file_h, test_file_cpp)
11801179
assert stderr == ''
11811180

11821181

0 commit comments

Comments
 (0)