Skip to content

Commit 844a6cd

Browse files
committed
fix: do not run platform sensitive tests in doc
The doc gives a very good example of how one can ignore tests depending on the platform it's running on. But when we check this part of the doc, depending on the platform we're doing it, we don't get the same output, hence the doc_test fails on mac and succeeds on linux. So to ensure doc test is portable we just don't check this part of the doc.
1 parent e65fb8a commit 844a6cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ If _condition_ is true, will skip all the tests in the current file which match
667667

668668
This can be useful when one has tests that are dependent on system environment, for instance:
669669

670-
```test
670+
```
671671
skip_if "uname | grep Darwin" linux
672672
skip_if "uname | grep Linux" darwin
673673

@@ -681,7 +681,7 @@ test_darwin_proc_does_not_exist() {
681681

682682
will output, on a Linux system:
683683

684-
```output
684+
```
685685
Running test_darwin_proc_does_not_exist ... SKIPPED
686686
Running test_linux_proc_exists ... SUCCESS
687687
```

0 commit comments

Comments
 (0)