Commit f640d19
committed
Fix TestCursor when cursor is valid
This fixes TestCursor so it returns an error when the ``cursor``
parameter is not the same as the current position.
From SD_JOURNAL_GET_CURSOR(3):
```
sd_journal_test_cursor() returns positive if the current entry
matches the specified cursor, 0 if it does not match the specified
cursor or a negative errno-style error code on failure.
```1 parent d219646 commit f640d19
2 files changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| 306 | + | |
306 | 307 | | |
307 | 308 | | |
308 | 309 | | |
| |||
370 | 371 | | |
371 | 372 | | |
372 | 373 | | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
373 | 380 | | |
374 | 381 | | |
375 | 382 | | |
| |||
879 | 886 | | |
880 | 887 | | |
881 | 888 | | |
| 889 | + | |
| 890 | + | |
882 | 891 | | |
883 | 892 | | |
884 | 893 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
181 | 195 | | |
182 | 196 | | |
183 | 197 | | |
| |||
0 commit comments