[PATCH v2 0/9] util: error: Reformat error messages and add tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



V2 fixes gettext and simplifies some parts. Patch 4/9 is new and the
last two were dropped in comparison to v1.

Peter Krempa (9):
  include: error: Add enum sentinel for virErrorNumber enum
  util: error: Fix error message strings to play well with additional
    info
  util: error: Add error message versions with info for some error codes
  util: error: Reword some unused error messages
  util: error: Export virErrorMsg for use in testsuite
  tests: Add test for virErrorMsg message constraints
  util: error: Improve docs for virErrorMsg
  DO NOT PUSH: Make sure that error messages are not moved around
  util: error: Put error code messages into an array

 include/libvirt/virterror.h |   5 +
 src/libvirt_private.syms    |   2 +
 src/util/Makefile.inc.am    |   1 +
 src/util/virerror.c         | 738 +++++++-----------------------------
 src/util/virerrorpriv.h     |  28 ++
 tests/Makefile.am           |   6 +
 tests/virerrormessages.txt  | 101 +++++
 tests/virerrortest.c        | 126 ++++++
 8 files changed, 405 insertions(+), 602 deletions(-)
 create mode 100644 src/util/virerrorpriv.h
 create mode 100644 tests/virerrormessages.txt
 create mode 100644 tests/virerrortest.c

-- 
2.19.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux