Skip to content

Commit 9bfa051

Browse files
authored
test: add test for clangd compile commands path
1 parent dac77f7 commit 9bfa051

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/cpp/integration-tests.bats

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,12 @@ teardown() {
178178
assert_output --partial "All checks completed, 0 errors"
179179
}
180180

181+
@test "clangd should start with a specified compile commands path" {
182+
run timeout 1s clangd --compile-commands-dir=/root/.amp
183+
assert_success
184+
refute_output --partial "Path specified by --compile-commands-dir does not exist. The argument will be ignored."
185+
}
186+
181187
@test "using lld as an alternative linker should result in working host executable" {
182188
cmake --preset gcc
183189
cmake --build --preset gcc-lld

0 commit comments

Comments
 (0)