Skip to content

Commit 7f90202

Browse files
committed
C++: Turn header variant tests that use PCH files into integration tests
These tests currently test a code path in the extractor that only exists for these tests. By turning them into integration tests, we actually use the code path that normal database creation uses.
1 parent e5d2961 commit 7f90202

File tree

36 files changed

+62
-53
lines changed

36 files changed

+62
-53
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include "a.h"
2+
#define FOUR 4
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
int main() {
2+
return ONE + FOUR;
3+
}

cpp/ql/test/header-variant-tests/clang-pch/clang-pch.expected renamed to cpp/ql/integration-tests/header-variant-tests/clang-pch/clang-pch.expected

File renamed without changes.

cpp/ql/test/header-variant-tests/clang-pch/clang-pch.ql renamed to cpp/ql/integration-tests/header-variant-tests/clang-pch/clang-pch.ql

File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#import "d.h"
File renamed without changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
int main() {
2+
return SEVENTEEN;
3+
}

0 commit comments

Comments
 (0)