diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2024-05-29 13:04:28 +0000 |
|---|---|---|
| committer | Chris Denton <chris@chrisdenton.dev> | 2024-05-29 13:04:28 +0000 |
| commit | 1e6544a20ec8ba822c8af93a953ec7ea70dddbd9 (patch) | |
| tree | 427e57c483e40a0bdc82cebb8200a63b0f7ad16a /tests/ui/windows-subsystem | |
| parent | 4cf5723dbe471ef0a32857b968b91498551f5e38 (diff) | |
| download | rust-1e6544a20ec8ba822c8af93a953ec7ea70dddbd9.tar.gz rust-1e6544a20ec8ba822c8af93a953ec7ea70dddbd9.zip | |
Move run-make windows_subsystem tests to ui tests
Diffstat (limited to 'tests/ui/windows-subsystem')
| -rw-r--r-- | tests/ui/windows-subsystem/console.rs | 4 | ||||
| -rw-r--r-- | tests/ui/windows-subsystem/windows-subsystem-invalid.rs | 5 | ||||
| -rw-r--r-- | tests/ui/windows-subsystem/windows-subsystem-invalid.stderr | 4 | ||||
| -rw-r--r-- | tests/ui/windows-subsystem/windows.rs | 4 |
4 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/windows-subsystem/console.rs b/tests/ui/windows-subsystem/console.rs new file mode 100644 index 00000000000..8f0ca2de370 --- /dev/null +++ b/tests/ui/windows-subsystem/console.rs @@ -0,0 +1,4 @@ +//@ run-pass +#![windows_subsystem = "console"] + +fn main() {} diff --git a/tests/ui/windows-subsystem/windows-subsystem-invalid.rs b/tests/ui/windows-subsystem/windows-subsystem-invalid.rs new file mode 100644 index 00000000000..c6a6dd00a92 --- /dev/null +++ b/tests/ui/windows-subsystem/windows-subsystem-invalid.rs @@ -0,0 +1,5 @@ +//@ error-pattern: invalid windows subsystem `wrong`, only `windows` and `console` are allowed + +#![windows_subsystem = "wrong"] + +fn main() {} diff --git a/tests/ui/windows-subsystem/windows-subsystem-invalid.stderr b/tests/ui/windows-subsystem/windows-subsystem-invalid.stderr new file mode 100644 index 00000000000..703f35c969c --- /dev/null +++ b/tests/ui/windows-subsystem/windows-subsystem-invalid.stderr @@ -0,0 +1,4 @@ +error: invalid windows subsystem `wrong`, only `windows` and `console` are allowed + +error: aborting due to 1 previous error + diff --git a/tests/ui/windows-subsystem/windows.rs b/tests/ui/windows-subsystem/windows.rs new file mode 100644 index 00000000000..65db0fec7a8 --- /dev/null +++ b/tests/ui/windows-subsystem/windows.rs @@ -0,0 +1,4 @@ +//@ run-pass +#![windows_subsystem = "windows"] + +fn main() {} |
