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` ```
29 lines
749 B
Rust
29 lines
749 B
Rust
//@ ignore-gdb
|
|
|
|
//@ compile-flags:-g
|
|
|
|
// === LLDB TESTS =================================================================================
|
|
|
|
//@ lldb-command:run
|
|
|
|
//@ lldb-command:print pathbuf
|
|
//@ lldb-check:[...] "/some/path" { inner = "/some/path" { inner = { inner = size=10 { [0] = '/' [1] = 's' [2] = 'o' [3] = 'm' [4] = 'e' [5] = '/' [6] = 'p' [7] = 'a' [8] = 't' [9] = 'h' } } } }
|
|
//@ lldb-command:po pathbuf
|
|
//@ lldb-check:"/some/path"
|
|
//@ lldb-command:print path
|
|
//@ lldb-check:[...] "/some/path" { data_ptr = [...] length = 10 }
|
|
//@ lldb-command:po path
|
|
//@ lldb-check:"/some/path"
|
|
|
|
use std::path::Path;
|
|
|
|
fn main() {
|
|
let path = Path::new("/some/path");
|
|
let pathbuf = path.to_path_buf();
|
|
|
|
zzz(); // #break
|
|
}
|
|
|
|
fn zzz() {
|
|
()
|
|
}
|