| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
- add support for events (with test)
- test progress messages
- update documentation to describe events
- refactor handle closing code
- refactor error code
- use 'assert' in test code instead of 'if ... then error end'
|
| |
|
| |
|
| |
|
|
|
|
| |
Use %s + strerror as a replacement.
|
|
|
|
|
|
|
|
| |
- Remove default error handler.
- User cancel.
- Add the errno to the object which is thrown on error.
Still no events.
|
| |
|
|
|
|
|
|
|
|
| |
These are relatively complete, although only lightly tested. Missing:
- events
- last_errno
- user_cancel
|
| |
|
| |
|
|
|
|
| |
(RHBZ#852194).
|
|
|
|
| |
Thanks Steve Grubb.
|
|
|
|
|
|
|
| |
Also various fixes:
- remove fixed-size buffer
- change if (err) free (err) -> free (err).
|
| |
|
| |
|
| |
|
|
|
|
| |
Lots of these had been omitted over time.
|
|
|
|
|
|
|
| |
This file was present in git, but missing from the tarball.
Don't actually run the test: it depends on details of how the
appliance is constructed which would fail for old-style appliances.
|
|
|
|
|
|
|
| |
This test was present in git, but not included in the tarball,
nor in the tests that guestfish actually runs.
This fixes commit 17182af3a6de8e3e94e0a914416c54f09bb74007.
|
|
|
|
|
|
|
| |
This is designed to reveal libvirt race conditions such as
bug 875741.
This is a "slow test" so it only runs if you do 'make check-slow'.
|
| |
|
|
|
|
| |
This gives a short overview of the make targets.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
'make extra-tests' was a monolithic set of tests that did all sorts of
things: valgrind, tests over local guests, tests with upstream qemu,
tests with upstream libvirt, tests with the appliance attach method.
This made it hard to perform individual tests, eg. just valgrind
testing. It was also hard to maintain because the tests were not
located in the same directories as the programs and sometimes
duplicated tests that were run elsewhere.
This commit splits up 'make extra-tests' into 5 separate targets:
make check-valgrind # run a subset of tests under valgrind
make check-valgrind-local-guests # test under valgrind with local guests
make check-with-appliance # test with attach-method == appliance
make check-with-upstream-qemu # test with an alternate/upstream qemu
make check-with-upstream-libvirt # test with an alternate/upstream libvirt
(You can also still run 'make extra-tests' which is now simply
a rule that runs the above 5 targets in order).
This replaces everything that was in the tests/extra directory,
so that has now gone.
|
|
|
|
| |
This is essentially just code motion.
|
|
|
|
|
|
| |
This is mostly just code motion, but it also changes the default
location where valgrind.log is written to be the top build directory
(instead of tests/extra/valgrind.log).
|
| |
|
| |
|
| |
|
|
|
|
| |
This is just code motion.
|
|
|
|
|
| |
Remove internal structures, fix it so it works with the new
code layout under src/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This file had grown by accretion to include:
- code related to handles (now in src/handle.c)
- safe allocation (src/alloc.c)
- debug, errors, warnings (src/errors.c)
- private data (src/private-data.c)
- miscellaneous functions (src/canonical-name.c, src/utils.c)
This commit also removes about a dozen #include files which were
probably not really used.
This is just code motion.
|
|
|
|
| |
This fixes commit 1efed122c07792f4c66a4083159cfacfb1893212.
|
| |
|
| |
|
|
|
|
| |
This fixes commit 1efed122c07792f4c66a4083159cfacfb1893212.
|
|
|
|
|
|
|
|
|
|
| |
If you have a function which is in the X optgroup, and also has
IfAvailable X, then two tests for the optgroup are added to the
output.
Check for this case and give an error.
This also fixes existing APIs.
|
|
|
|
| |
No functional change.
|
|
|
|
|
|
| |
Replace the custom error handler with calls to
guestfs_{push,pop}_error_handler only where necessary. This
simplifies the generated code.
|
|
|
|
| |
This is just code motion.
|
|
|
|
| |
Just code cleanup, no functional change.
|
| |
|
|
|
|
| |
This is just whitespace changes in the output.
|
|
|
|
|
|
| |
In the fork (usual) case, we still won't see any errors since stderr
has been redirected to /dev/null, but this way is still a little more
correct.
|
|
|
|
|
| |
This is a shorter and more convenient way to disable errors
temporarily across calls.
|
|
|
|
|
| |
This is less efficient than directly manipulating g->error_cb, but
easier to maintain.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
guestfs_pop_error_handler.
The addition of these calls makes it much simpler to temporarily
disable or ignore errors:
guestfs_push_error_handler (g, NULL, NULL);
guestfs_mkdir (g, "/foo"); /* We don't care if this fails. */
guestfs_pop_error_handler (g);
Note these calls are used by the C API only. They are not necessary
in other languages, because those map errors to exceptions.
The subsequent commits change existing code to use push/pop instead of
laboriously saving and restoring the error handler.
|