mirror of
https://github.com/yshui/picom.git
synced 2024-11-11 13:51:02 -05:00
Update README
This commit is contained in:
parent
09083afa1e
commit
63a0c61f63
1 changed files with 4 additions and 2 deletions
|
@ -34,10 +34,10 @@ TEST_CASE(test_case_name) {
|
|||
In your main function, call `run_tests`:
|
||||
|
||||
```c
|
||||
int main() {
|
||||
int main(int argc, char *const *argv) {
|
||||
// necessary setup code
|
||||
// ...
|
||||
if (!run_tests()) {
|
||||
if (!run_tests(argc, argv)) {
|
||||
// test failed
|
||||
abort();
|
||||
}
|
||||
|
@ -46,3 +46,5 @@ int main() {
|
|||
}
|
||||
|
||||
```
|
||||
|
||||
Then, run your program with `./program --unittest`.
|
||||
|
|
Loading…
Reference in a new issue