Skip to content

Commit 68f0caa

Browse files
committed
Remove test f2b from FIO38-C tests
1 parent 3df370a commit 68f0caa

File tree

6 files changed

+10
-70
lines changed

6 files changed

+10
-70
lines changed

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"files.associations": {
3+
"*.jq": "json",
4+
"*.py": "python",
5+
"stdio.h": "c"
6+
},
7+
"sarif-viewer.connectToGithubCodeScanning": "off"
8+
}

c/cert/test/rules/FIO38-C/test.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ int f2(void) {
1818
FILE my_stdout2 = *my_stdout; // NON_COMPLIANT
1919
return fputs("Hello, World!\n", my_stdout);
2020
}
21-
int f2b(void) {
22-
FILE *const *my_stdout;
23-
my_stdout = &stdout; // COMPLIANT
24-
FILE my_stdout2 = **my_stdout; // NON_COMPLIANT
25-
return fputs("Hello, World!\n", *my_stdout);
26-
}
2721

2822
int f3(void) {
2923
FILE my_stdout;

c/cert/test/rules/FIO38-C/test.c.clang

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ int f2(void) {
1111
FILE my_stdout2 = *my_stdout; // NON_COMPLIANT
1212
return fputs("Hello, World!\n", my_stdout);
1313
}
14-
int f2b(void) {
15-
FILE *const *my_stdout;
16-
my_stdout = &stdout; // COMPLIANT
17-
FILE my_stdout2 = **my_stdout; // NON_COMPLIANT
18-
return fputs("Hello, World!\n", *my_stdout);
19-
}
2014

2115
int f3(void) {
2216
FILE my_stdout;

c/cert/test/rules/FIO38-C/test.c.gcc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ int f2(void) {
1111
FILE my_stdout2 = *my_stdout; // NON_COMPLIANT
1212
return fputs("Hello, World!\n", my_stdout);
1313
}
14-
int f2b(void) {
15-
FILE *const *my_stdout;
16-
my_stdout = &stdout; // COMPLIANT
17-
FILE my_stdout2 = **my_stdout; // NON_COMPLIANT
18-
return fputs("Hello, World!\n", *my_stdout);
19-
}
2014

2115
int f3(void) {
2216
FILE my_stdout;

c/cert/test/rules/FIO38-C/test.c.qcc

Lines changed: 0 additions & 50 deletions
This file was deleted.

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)