mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
check: Fix corrupted xml check files
By making sure each different videoscale check instance gets logged into different output file
This commit is contained in:
parent
1f9204c725
commit
3cc9b2c490
1 changed files with 20 additions and 1 deletions
|
@ -1069,4 +1069,23 @@ videoscale_suite (void)
|
|||
return s;
|
||||
}
|
||||
|
||||
GST_CHECK_MAIN (videoscale);
|
||||
/* NOTE:
|
||||
* We need to do the filename dance below in order to avoid having
|
||||
* multiple parallel tests (identified by VSCALE_TEST_GROUP) going
|
||||
* to the same output xml file (when using GST_CHECK_XML) */
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
Suite *s;
|
||||
|
||||
gst_check_init (&argc, &argv);
|
||||
s = videoscale_suite ();
|
||||
#ifndef VSCALE_TEST_GROUP
|
||||
#define FULL_RUN_NAME __FILE__
|
||||
#else
|
||||
#define STR_HELPER(x) #x
|
||||
#define STR(x) STR_HELPER(x)
|
||||
#define FULL_RUN_NAME __FILE__ STR(VSCALE_TEST_GROUP)".c"
|
||||
#endif
|
||||
return gst_check_run_suite (s, "videoscale", FULL_RUN_NAME);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue