mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tests: Unify style of test skipping code
Prefer 'return EXIT_AM_SKIP' over 'exit(EXIT_AM_SKIP)'. Prefer 'int main(void)' over 'int main(int argc, char **argv)'. Fix mymain signature in commandtest and nodeinfotest.
This commit is contained in:
@@ -206,6 +206,10 @@ VIRT_TEST_MAIN(mymain)
|
||||
|
||||
#else
|
||||
|
||||
int main (void) { exit (EXIT_AM_SKIP); }
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
return EXIT_AM_SKIP;
|
||||
}
|
||||
|
||||
#endif /* WITH_QEMU */
|
||||
|
||||
Reference in New Issue
Block a user