* include/grub/test.h (grub_unit_test_init): Add missing prototype.

(grub_unit_test_fini): Likewise.
	* tests/lib/unit_test.c (main): Remove extra nested external prototype.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-02-12 22:04:55 +01:00
parent d9a62292e3
commit e51b56667a
3 changed files with 13 additions and 3 deletions

View file

@ -1,3 +1,13 @@
2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/test.h (grub_unit_test_init): Add missing prototype.
(grub_unit_test_fini): Likewise.
* tests/lib/unit_test.c (main): Remove extra nested external prototype.
2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/test.h (GRUB_UNIT_TEST)
2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/script/execute.c (grub_script_break): Clarify logic.

View file

@ -59,6 +59,9 @@ void grub_test_nonzero (int cond, const char *file,
## __VA_ARGS__, \
"assert failed: %s", #cond)
void grub_unit_test_init (void);
void grub_unit_test_fini (void);
/* Macro to define a unit test. */
#define GRUB_UNIT_TEST(name, funp) \
void grub_unit_test_init (void) \

View file

@ -30,9 +30,6 @@ main (int argc __attribute__ ((unused)),
{
int status = 0;
extern void grub_unit_test_init (void);
extern void grub_unit_test_fini (void);
grub_test_t test;
grub_unit_test_init ();