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:
@@ -38,10 +38,10 @@
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
static int
|
||||
mymain(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED)
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
exit (EXIT_AM_SKIP);
|
||||
return EXIT_AM_SKIP;
|
||||
}
|
||||
|
||||
#else
|
||||
@@ -814,6 +814,6 @@ mymain(void)
|
||||
return(ret==0 ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
}
|
||||
|
||||
#endif /* !WIN32 */
|
||||
|
||||
VIRT_TEST_MAIN(mymain)
|
||||
|
||||
#endif /* !WIN32 */
|
||||
|
||||
Reference in New Issue
Block a user