-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #868 from mull-project/dot-slash-binary
mull-cxx and mull-runner: use real_path to expand relative paths
- Loading branch information
Showing
4 changed files
with
64 additions
and
14 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
..._line_input_validation/valid_input/01_executable_is_dot_slash_relative_path_binary/main.c
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,22 @@ | ||
int test(int a, int b) { | ||
return a + b; | ||
} | ||
|
||
int main(int argc, char **argv) { | ||
return !( test(2, 3) == 5 ); | ||
} | ||
|
||
// clang-format off | ||
|
||
// RUN: %clang_cc %s -fembed-bitcode -g -o %s.exe | ||
|
||
// RUN: cd %S | ||
|
||
// RUN: %mull_cxx -linker=%clang_cc -ide-reporter-show-killed -keep-executable -mutators=cxx_add_to_sub -mutators=cxx_mul_to_div main.c.exe | %FILECHECK_EXEC %s --dump-input=fail --match-full-lines --check-prefix=CHECK-MULL-CXX | ||
// CHECK-MULL-CXX: [info] Killed mutants (1/1): | ||
|
||
// RUN: %mull_cxx -linker=%clang_cc -keep-executable -mutate-only -output=main.c.mutated.exe -mutators=cxx_add_to_sub -mutators=cxx_mul_to_div main.c.exe | %FILECHECK_EXEC %s --dump-input=fail --match-full-lines --check-prefix=CHECK-MUTATE | ||
// CHECK-MUTATE: [info] Mutate-only mode on:{{.*}} | ||
|
||
// RUN: %mull_runner main.c.mutated.exe -ide-reporter-show-killed | %FILECHECK_EXEC %s --dump-input=fail --match-full-lines --check-prefix=CHECK-RUNNER | ||
// CHECK-RUNNER: [info] Killed mutants (1/1): |
12 changes: 12 additions & 0 deletions
12
tests-lit/tests/invalid-input/06-input-file-does-not-exist/sample.cpp
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,12 @@ | ||
// clang-format off | ||
|
||
/** | ||
RUN: cd %CURRENT_DIR | ||
RUN: (unset TERM; %MULL_EXEC -linker=%clang_cc this-file-does-not-exist 2>&1; test $? = 1) | %FILECHECK_EXEC %s --dump-input=fail --strict-whitespace --match-full-lines --check-prefix=CHECK-CXX | ||
CHECK-CXX:[error] The provided path to an executable program is not valid: this-file-does-not-exist | ||
CHECK-CXX:[error] Error messages are treated as fatal errors. Exiting now. | ||
RUN: (%mull_runner this-file-does-not-exist 2>&1; test $? = 1) | %FILECHECK_EXEC %s --dump-input=fail --match-full-lines --check-prefix=CHECK-RUNNER | ||
CHECK-RUNNER:[error] The provided path to an executable program is not valid: this-file-does-not-exist | ||
CHECK-RUNNER:[error] Error messages are treated as fatal errors. Exiting now. | ||
*/ |
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
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