-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added integration test for mutation score threshold feature (mutation score should be 50%, we set our threshold to 49% and expect the test runner to still return success)
- Loading branch information
1 parent
4b254b7
commit 38f76c1
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
mutators: | ||
- cxx_init_const | ||
- cxx_add_to_sub | ||
|
||
quiet: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
int sum(int a, int b) { | ||
return a + b; | ||
} | ||
|
||
int main() { | ||
int r = sum(2, 5) == 7; | ||
return !r; | ||
} | ||
|
||
// clang-format off | ||
|
||
/* | ||
RUN: %clang_cc %sysroot %s %pass_mull_ir_frontend -g -o %S/test.exe | ||
RUN: cd /; unset TERM; %mull_runner --mutation-score-threshold 49 %S/test.exe | ||
*/ |