Update test expectations -- codeql run test expects noncompliance.
This commit is contained in:
Родитель
8a1d089b69
Коммит
e60c4f0a91
|
@ -0,0 +1 @@
|
|||
| Wcast-function-type.cpp:0:0:0:0 | Wcast-function-type.cpp | No warning-level options were used in the compilation of 'Wcast-function-type.cpp'. |
|
|
@ -1,2 +1,14 @@
|
|||
// semmle-extractor-options: --clang -std=c++14 -Wcast-function-type
|
||||
// COMPLIANT
|
||||
// COMPLIAN
|
||||
|
||||
// NOTE: When tested with `codeql test run`, the test extractor provides `-w`
|
||||
// which overrides `-Wcast-function-type` and causes this test case to be
|
||||
// non-compliant.
|
||||
//
|
||||
// However, when tested with our compiler matrix tests, this test db is built
|
||||
// via `codeql database create --command="..."`, and the `-w` flag will NOT be
|
||||
// used. This means the `-Wcast-function-type` flag is active and the test case
|
||||
// is compliant.
|
||||
//
|
||||
// Therefore, the .expected file for this test expects non-compliance, and the
|
||||
// .expected.gcc and .expected.clang files expect this test to be compliant.
|
|
@ -0,0 +1 @@
|
|||
| Wall.cpp:0:0:0:0 | Wall.cpp | No warning-level options were used in the compilation of 'Wall.cpp'. |
|
|
@ -1,2 +1,12 @@
|
|||
// semmle-extractor-options: --clang -std=c++14 -Wall
|
||||
// COMPLIANT
|
||||
// COMPLIANT
|
||||
|
||||
// NOTE: When tested with `codeql test run`, the test extractor provides `-w`
|
||||
// which overrides `-Wall` and causes this test case to be non-compliant.
|
||||
//
|
||||
// However, when tested with our compiler matrix tests, this test db is built
|
||||
// via `codeql database create --command="..."`, and the `-w` flag will NOT be
|
||||
// used. This means the `-Wall` flag is active and the test case is compliant.
|
||||
//
|
||||
// Therefore, the .expected file for this test expects non-compliance, and the
|
||||
// .expected.gcc and .expected.clang files expect this test to be compliant.
|
Загрузка…
Ссылка в новой задаче