about summary refs log tree commit diff
path: root/tests/ui/argfile/commandline-argfile-multiple.rs
diff options
context:
space:
mode:
authorbeetrees <b@beetr.ee>2023-05-15 18:34:32 +0000
committerbeetrees <b@beetr.ee>2024-03-07 00:19:55 +0000
commit63091b105d08b7b0db19d699d3be3060acde04ad (patch)
tree82ededcd7e6022139b1570cd3cbed16493c57a07 /tests/ui/argfile/commandline-argfile-multiple.rs
parent7d3702e472b99be0f5de6608dd87af1df8f99428 (diff)
downloadrust-63091b105d08b7b0db19d699d3be3060acde04ad.tar.gz
rust-63091b105d08b7b0db19d699d3be3060acde04ad.zip
Make `arg_expand_all` not short-circuit on first error
Diffstat (limited to 'tests/ui/argfile/commandline-argfile-multiple.rs')
-rw-r--r--tests/ui/argfile/commandline-argfile-multiple.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ui/argfile/commandline-argfile-multiple.rs b/tests/ui/argfile/commandline-argfile-multiple.rs
new file mode 100644
index 00000000000..f658ee34fbb
--- /dev/null
+++ b/tests/ui/argfile/commandline-argfile-multiple.rs
@@ -0,0 +1,21 @@
+// Check to see if we can get parameters from an @argsfile file
+//
+// Path replacement in .stderr files (i.e. `$DIR`) doesn't handle mixed path
+// separators. We have a duplicated version of this test that uses backslash as
+// the path separator for the command line arguments that is only run on
+// windows.
+//
+//@ ignore-windows
+//@ normalize-stderr-test: "os error \d+" -> "os error $$ERR"
+//@ normalize-stderr-test: "commandline-argfile-missing.args:[^(]*" -> "commandline-argfile-missing.args: $$FILE_MISSING "
+//@ normalize-stderr-test: "commandline-argfile-missing2.args:[^(]*" -> "commandline-argfile-missing2.args: $$FILE_MISSING "
+//@ compile-flags: --cfg cmdline_set @{{src-base}}/argfile/commandline-argfile-missing.args @{{src-base}}/argfile/commandline-argfile-badutf8.args @{{src-base}}/argfile/commandline-argfile-missing2.args
+
+#[cfg(not(cmdline_set))]
+compile_error!("cmdline_set not set");
+
+#[cfg(not(unbroken))]
+compile_error!("unbroken not set");
+
+fn main() {
+}