diff --git a/Makefile.am b/Makefile.am index 745dbbc..b333298 100644 --- a/Makefile.am +++ b/Makefile.am @@ -88,8 +88,7 @@ noinst_PROGRAMS = \ test/telltoc \ test/dewav \ test/fake_au \ - test/poll \ - test/structest + test/poll bin_PROGRAMS = \ cdrskin/cdrskin @@ -114,9 +113,6 @@ test_fake_au_SOURCES = test/fake_au.c test_poll_CPPFLAGS = -Ilibburn test_poll_LDADD = $(libburn_libburn_la_OBJECTS) $(LIBBURN_EXTRALIBS) test_poll_SOURCES = test/poll.c -test_structest_CPPFLAGS = -Ilibburn -test_structest_LDADD = $(libburn_libburn_la_OBJECTS) $(LIBBURN_EXTRALIBS) -test_structest_SOURCES = test/structest.c ## cdrskin construction site - ts A60816 - B50517 cdrskin_cdrskin_CPPFLAGS = -Ilibburn @@ -175,8 +171,7 @@ uninstall-local: # Indent source files indent_files = \ $(libburn_libburn_la_SOURCES) \ - $(test_poll_SOURCES) \ - $(test_structest_SOURCES) + $(test_poll_SOURCES) indent: $(indent_files) diff --git a/test/structest.c b/test/structest.c deleted file mode 100644 index 6820bf8..0000000 --- a/test/structest.c +++ /dev/null @@ -1,51 +0,0 @@ -#include -#include -#include -#include - -int main(int argc, char **argv) -{ - int i; - const char *path; - struct burn_track *track; - struct burn_disc *disc; - struct burn_session *session; - struct burn_source *src; - - burn_initialize(); - burn_msgs_set_severities("NEVER", "ALL", "structest: "); - - disc = burn_disc_create(); - session = burn_session_create(); - burn_disc_add_session(disc, session, BURN_POS_END); - - /* Define a source for all of the tracks */ - path = strdup("/etc/hosts"); - src = burn_file_source_new(path, NULL); - - /* Add ten tracks to a session */ - for (i = 0; i < 10; i++) { - track = burn_track_create(); - burn_session_add_track(session, track, 0); - if (burn_track_set_source(track, src) != BURN_SOURCE_OK) { - printf("problem with the source\n"); - return 0; - } - } - - /* Add ten tracks to a session */ - for (i = 0; i < 10; i++) { - track = burn_track_create(); - burn_session_add_track(session, track, 0); - if (burn_track_set_source(track, src) != BURN_SOURCE_OK) { - printf("problem with the source\n"); - return 0; - } - } - - /* Delete a session */ - burn_session_remove_track(session, track); - - burn_structure_print_disc(disc); - return EXIT_SUCCESS; -}