mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
compiletest: Use //@ prefixes also for debuginfo test directives
So that when we later add support for revisions we can use the same syntax for revisions as elsewhere. This also prevents people from making typos for commands since `src/tools/compiletest/src/directives/directive_names.rs` will catch such typos now. Note that we one FIXME for a non-trivial change for later: ``` // FIXME(148097): Change `// cdb-checksimple_closure` to `//@ cdb-check:simple_closure` ```
This commit is contained in:
@@ -5,17 +5,17 @@
|
||||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print *abc
|
||||
// gdb-check:$1 = enum_thinlto::ABC::TheA{x: 0, y: 8970181431921507452}
|
||||
//@ gdb-command:print *abc
|
||||
//@ gdb-check:$1 = enum_thinlto::ABC::TheA{x: 0, y: 8970181431921507452}
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v *abc
|
||||
// lldb-check:(enum_thinlto::ABC) *abc = TheA{x:0, y:8970181431921507452} { x = 0 y = 8970181431921507452 }
|
||||
//@ lldb-command:v *abc
|
||||
//@ lldb-check:(enum_thinlto::ABC) *abc = TheA{x:0, y:8970181431921507452} { x = 0 y = 8970181431921507452 }
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user