diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-08-31 00:11:36 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-31 00:16:04 +0900 |
| commit | a5ee9d944edf665c814bbfeded2849f2bb980ed8 (patch) | |
| tree | 81c111c54d47e11a90e928edaeef6e1a1eba1e57 /tests | |
| parent | 76b0c6bb6bbc339789943ada1f79ec1eba52239f (diff) | |
| download | ducc-a5ee9d944edf665c814bbfeded2849f2bb980ed8.tar.gz ducc-a5ee9d944edf665c814bbfeded2849f2bb980ed8.tar.zst ducc-a5ee9d944edf665c814bbfeded2849f2bb980ed8.zip | |
fix: error message when included file is not found
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/057.sh | 2 | ||||
| -rw-r--r-- | tests/059.sh | 2 | ||||
| -rw-r--r-- | tests/110.sh | 15 |
3 files changed, 17 insertions, 2 deletions
diff --git a/tests/057.sh b/tests/057.sh index 291030c..3649588 100644 --- a/tests/057.sh +++ b/tests/057.sh @@ -1,5 +1,5 @@ cat <<'EOF' > expected -cannot open include file: ./nonexistent.h +main.c:1: cannot open include file: "nonexistent.h" EOF test_compile_error <<'EOF' diff --git a/tests/059.sh b/tests/059.sh index 189ff5e..a7b92d0 100644 --- a/tests/059.sh +++ b/tests/059.sh @@ -7,7 +7,7 @@ int main() } EOF cat <<'EOF' > expected -main.c:1: expected '{', but got '123 (<integer>)' +main.c:1: expected '{', but got '123' EOF test_compile_error <<'EOF' diff --git a/tests/110.sh b/tests/110.sh new file mode 100644 index 0000000..4d48752 --- /dev/null +++ b/tests/110.sh @@ -0,0 +1,15 @@ +cat <<'EOF' > expected +main.c:1: cannot open include file: "hoge.h" +EOF + +test_compile_error <<'EOF' +#include "hoge.h" +EOF + +cat <<'EOF' > expected +main.c:1: cannot resolve include file name: <hoge.h> +EOF + +test_compile_error <<'EOF' +#include <hoge.h> +EOF |
