git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofproto: Fix potential leak during flow mods.
[sliver-openvswitch.git]
/
tests
/
test-sha1.c
diff --git
a/tests/test-sha1.c
b/tests/test-sha1.c
index
2be7942
..
1896c0f
100644
(file)
--- a/
tests/test-sha1.c
+++ b/
tests/test-sha1.c
@@
-22,6
+22,7
@@
#include <string.h>
#include "random.h"
#include "util.h"
#include <string.h>
#include "random.h"
#include "util.h"
+#include "ovstest.h"
#undef NDEBUG
#include <assert.h>
#undef NDEBUG
#include <assert.h>
@@
-137,8
+138,8
@@
test_big_vector(void)
free(vec.data);
}
free(vec.data);
}
-int
-
main(void
)
+static void
+
test_shar1_main(int argc OVS_UNUSED, char *argv[] OVS_UNUSED
)
{
int i;
{
int i;
@@
-149,6
+150,6
@@
main(void)
test_big_vector();
putchar('\n');
test_big_vector();
putchar('\n');
-
- return 0;
}
}
+
+OVSTEST_REGISTER("test-sha1", test_shar1_main);