NetworkManager/shared/nm-glib-aux/tests
Thomas Haller e2bd722358
shared: refactor nm_utils_parse_next_line() and add tests
- add unit test for nm_utils_parse_next_line()

- as line delimiter also accept "\r\n" and "\r" (beside "\n", "\0" and
  EOF).

- fix returning lines with embedded "\0" characters. The line ends
  on the first "\n" or "\0", whatever comes first. The code before
  didn't ensure that with:

     line_end = memchr (line_start, '\n', *inout_len);
     if (!line_end)
         line_end = memchr (line_start, '\0', *inout_len);
2020-07-03 10:34:27 +02:00
..
meson.build license: Add license using SPDX identifiers to meson build files 2020-02-17 13:16:57 +01:00
test-shared-general.c shared: refactor nm_utils_parse_next_line() and add tests 2020-07-03 10:34:27 +02:00