Skip to content

Commit 88d7969

Browse files
committed
Update clang-tidy --fix-errors integration test expectations
With --fix-errors flag, newer clang-tidy versions (15+) return exit code 0 and produce no output for files with unfixable errors. The integration tests were expecting these to fail, but they should pass. Updated integration test expectations to match shell command test expectations and actual behavior.
1 parent af8e710 commit 88d7969

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/table_tests_integration.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,8 @@
361361
"-checks=clang-diagnostic-return-type",
362362
"--fix-errors"
363363
],
364-
"expd_output": "clang-tidy...............................................................Failed\n- hook id: clang-tidy\n- exit code: 1\n\n{test_dir}/err.c:2:18: error: non-void function 'main' should return a value [clang-diagnostic-return-type]\n 2 | int main(){int i;return;}\n | ^\n1 error generated.\nError while processing {test_dir}/err.c.\n\n",
365-
"expd_retcode": 1
364+
"expd_output": "clang-tidy...............................................................Passed\n",
365+
"expd_retcode": 0
366366
},
367367
{
368368
"command": "clang-tidy",
@@ -413,8 +413,8 @@
413413
"-checks=clang-diagnostic-return-type",
414414
"--fix-errors"
415415
],
416-
"expd_output": "clang-tidy...............................................................Failed\n- hook id: clang-tidy\n- exit code: 1\n\n{test_dir}/err.cpp:2:18: error: non-void function 'main' should return a value [clang-diagnostic-return-type]\n 2 | int main(){int i;return;}\n | ^\n1 error generated.\nError while processing {test_dir}/err.cpp.\n\n",
417-
"expd_retcode": 1
416+
"expd_output": "clang-tidy...............................................................Passed\n",
417+
"expd_retcode": 0
418418
},
419419
{
420420
"command": "clang-tidy",

0 commit comments

Comments
 (0)