1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Use system assert in test/api/percent.c, for now.

This commit is contained in:
Petr Rockai 2011-01-03 15:07:39 +00:00
parent fadd934150
commit 9a09ca42d2

View File

@ -12,9 +12,10 @@
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "lvm2app.h"
#undef NDEBUG
#define assert(x) do { if (!(x)) goto bad; } while (0)
#include "lvm2app.h"
#include "assert.h"
int main(int argc, char *argv[])
{
@ -52,13 +53,4 @@ int main(int argc, char *argv[])
lvm_vg_close(vg);
return 0;
bad:
if (handle && lvm_errno(handle))
fprintf(stderr, "LVM Error: %s\n", lvm_errmsg(handle));
if (vg)
lvm_vg_close(vg);
if (handle)
lvm_quit(handle);
return 1;
}