diff options
Diffstat (limited to 'addressbook/tests/ebook/test-ebook-stress-factory--serial.c')
| -rw-r--r-- | addressbook/tests/ebook/test-ebook-stress-factory--serial.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/addressbook/tests/ebook/test-ebook-stress-factory--serial.c b/addressbook/tests/ebook/test-ebook-stress-factory--serial.c new file mode 100644 index 000000000..64bfc345d --- /dev/null +++ b/addressbook/tests/ebook/test-ebook-stress-factory--serial.c @@ -0,0 +1,29 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ + +#include <libebook/e-book.h> + +#include "ebook-test-utils.h" + +#define NUM_BOOKS 200 + +gint +main (gint argc, gchar **argv) +{ + char *uri = NULL; + gint i; + + g_type_init (); + + /* Serially create, open, (close), and remove many books */ + for (i = 0; i < NUM_BOOKS; i++) { + EBook *book; + + book = ebook_test_utils_book_new_temp (&uri); + ebook_test_utils_book_open (book, FALSE); + ebook_test_utils_book_remove (book); + + g_free (uri); + } + + return 0; +} |
