Skip to content

Commit cf2be9b

Browse files
committed
A1-1-1: fix test
1 parent 2de0997 commit cf2be9b

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@
2323

2424
# CodeQL build artifacts
2525
**/.codeql/**
26+
cpp/autosar/test/rules/A2-3-1/test.cpp.gcc
27+
cpp/autosar/test/rules/A2-3-1/test.cpp.qcc

cpp/autosar/test/rules/A1-1-1/CStandardLibraryHeadersAreDeprecated.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@
2424
#include <wchar.h> // NON_COMPLIANT
2525
#include <wctype.h> // NON_COMPLIANT
2626

27-
#include <cassert> // COMPLIANT
28-
#include <stdnoreturn.h> // COMPLIANT
27+
#include <stdnoreturn.h> // COMPLIANT
28+
#include <threads.h> // COMPLIANT

scripts/build_test_database.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
exit(1)
4848

4949
# get the codeql version
50-
res = subprocess.run(['codeql', 'version', '--format', 'json'], stdout=subprocess.PIPE)
50+
res = subprocess.run(['/Users/mauro/GitHub/coding-standards/codeql-bundle-20220908/codeql', 'version', '--format', 'json'], stdout=subprocess.PIPE)
5151
res_json = json.loads(res.stdout)
5252
CODEQL_VERSION=res_json["version"]
5353

@@ -67,4 +67,4 @@
6767
while os.path.exists(f"databases/{RULE}+{ITERATION}@{CODEQL_VERSION}"):
6868
ITERATION = ITERATION + 1
6969

70-
os.system(f"codeql database create -l cpp -s {LANGUAGE}/{STANDARD}/test/rules/{RULE} --command=\"{BUILD_COMMAND}\" databases/{RULE}+{ITERATION}@{CODEQL_VERSION}")
70+
os.system(f"/Users/mauro/GitHub/coding-standards/codeql-bundle-20220908/codeql database create -l cpp -s {LANGUAGE}/{STANDARD}/test/rules/{RULE} --command=\"{BUILD_COMMAND}\" databases/{RULE}+{ITERATION}@{CODEQL_VERSION}")

0 commit comments

Comments
 (0)