mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
tests: fix weird windowsy code in save_and_load unit test
Fixes compiler error about FILENAME_MAX in 0.11
This commit is contained in:
parent
e121368e37
commit
c3d9cb2b22
1 changed files with 6 additions and 6 deletions
|
@ -638,9 +638,7 @@ GST_START_TEST (test_pitivi_file_load)
|
||||||
GESFormatter *formatter;
|
GESFormatter *formatter;
|
||||||
GESTimeline *timeline, *expected;
|
GESTimeline *timeline, *expected;
|
||||||
GMainLoop *mainloop;
|
GMainLoop *mainloop;
|
||||||
char cCurrentPath[FILENAME_MAX];
|
gchar *uri, *save_uri, *cur_dir;
|
||||||
char *a;
|
|
||||||
gchar *uri, *save_uri;
|
|
||||||
|
|
||||||
/*create the expected timeline */
|
/*create the expected timeline */
|
||||||
timeline = ges_timeline_new ();
|
timeline = ges_timeline_new ();
|
||||||
|
@ -649,9 +647,11 @@ GST_START_TEST (test_pitivi_file_load)
|
||||||
|
|
||||||
/* create the timeline from formatter */
|
/* create the timeline from formatter */
|
||||||
formatter = GES_FORMATTER (ges_pitivi_formatter_new ());
|
formatter = GES_FORMATTER (ges_pitivi_formatter_new ());
|
||||||
a = GetCurrentDir (cCurrentPath, sizeof (cCurrentPath));
|
cur_dir = g_get_current_dir ();
|
||||||
uri = g_strconcat (a, "/test.xptv", NULL);
|
uri = g_build_filename (cur_dir, "test.xptv", NULL);
|
||||||
save_uri = g_strconcat (a, "/testsave.xptv", NULL);
|
save_uri = g_build_filename (cur_dir, "testsave.xptv", NULL);
|
||||||
|
g_free (cur_dir);
|
||||||
|
|
||||||
if (g_file_test (uri, G_FILE_TEST_EXISTS) == FALSE) {
|
if (g_file_test (uri, G_FILE_TEST_EXISTS) == FALSE) {
|
||||||
GST_ERROR ("Could not test GESPitiviFormatter as no project file found");
|
GST_ERROR ("Could not test GESPitiviFormatter as no project file found");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue