mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:17:46 +00:00
Everywhere: Replace a bundle of dbg with dbgln.
These changes are arbitrarily divided into multiple commits to make it easier to find potentially introduced bugs with git bisect.
This commit is contained in:
parent
fb8d3635d9
commit
ea7b7d8ceb
10 changed files with 99 additions and 74 deletions
|
@ -19,7 +19,7 @@ It also supports the [test262 parser tests](https://github.com/tc39/test262-pars
|
|||
The test root directory is assumed to be `/home/anon/js-tests`, or `$SERENITY_ROOT/Libraries/LibJS/Tests`
|
||||
when using the Lagom build. Optionally you can pass a custom path to `test-js` to override these defaults.
|
||||
|
||||
You can disable output from `dbg()` calls by setting the `DISABLE_DBG_OUTPUT` environment variable.
|
||||
You can disable output from `dbgln()` calls by setting the `DISABLE_DBG_OUTPUT` environment variable.
|
||||
|
||||
## Options
|
||||
|
||||
|
|
|
@ -35,16 +35,16 @@ buffer while using the returned string.
|
|||
int main()
|
||||
{
|
||||
char path1[] = "/home/anon/ReadMe.md";
|
||||
dbg() << basename(path1); // should be "ReadMe.md"
|
||||
dbgln("{}", basename(path1)); // should be "ReadMe.md"
|
||||
|
||||
char path2[] = "foo/bar/";
|
||||
dbg() << basename(path2); // should be "bar"
|
||||
dbgln("{}", basename(path2)); // should be "bar"
|
||||
|
||||
char path3[] = "foo";
|
||||
dbg() << basename(path3); // should be "foo"
|
||||
dbgln("{}", basename(path3)); // should be "foo"
|
||||
|
||||
char path4[] = "/";
|
||||
dbg() << basename(path4); // should be "/"
|
||||
dbgln("{}", basename(path4)); // should be "/"
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -36,16 +36,16 @@ buffer while using the returned string.
|
|||
int main()
|
||||
{
|
||||
char path1[] = "/home/anon/ReadMe.md";
|
||||
dbg() << dirname(path1); // should be "/home/anon"
|
||||
dbgln("{}", dirname(path1)); // should be "/home/anon"
|
||||
|
||||
char path2[] = "foo/bar/";
|
||||
dbg() << dirname(path2); // should be "foo"
|
||||
dbgln("{}", dirname(path2)); // should be "foo"
|
||||
|
||||
char path3[] = "foo";
|
||||
dbg() << dirname(path3); // should be "."
|
||||
dbgln("{}", dirname(path3)); // should be "."
|
||||
|
||||
char path4[] = "/";
|
||||
dbg() << dirname(path4); // should be "/"
|
||||
dbgln("{}", dirname(path4)); // should be "/"
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue