Skip to content

Commit

Permalink
run ninja test
Browse files Browse the repository at this point in the history
  • Loading branch information
chenliTW committed Jan 12, 2020
1 parent 74f80c1 commit f6e467e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions modulemd/tests/test-modulemd-merger.c
Expand Up @@ -12,7 +12,6 @@
*/

#include <glib.h>
#include <stdlib.h>
#include <yaml.h>

#include "modulemd-defaults-v1.h"
Expand All @@ -21,7 +20,6 @@
#include "modulemd-module-index.h"
#include "private/test-utils.h"

typedef int gint;

static void
merger_test_constructors (CommonMmdTestFixture *fixture,
Expand Down Expand Up @@ -123,8 +121,8 @@ merger_test_merger (CommonMmdTestFixture *fixture,
g_autoptr (ModulemdModuleIndex) override_index = NULL;
g_autoptr (GPtrArray) failures = NULL;
g_autoptr (GError) error = NULL;
gint random_low;
gint random_high;
gint32 random_low;
gint32 random_high;

/* Get a set of o = NULLbjects in a ModuleIndex */
yaml_path = g_strdup_printf ("%s/merging-base.yaml", g_getenv ("TEST_DATA_PATH"));
Expand Down Expand Up @@ -210,8 +208,8 @@ merger_test_merger (CommonMmdTestFixture *fixture,
* sorting issues.
*/
merger = modulemd_module_index_merger_new ();
random_low = rand()%100+1;
random_high = rand()%899+101;
random_low = g_random_int_range(1,100);
random_high = g_random_int_range(101,999);
printf("Low priority: %d, High priority: %d",random_low,random_high);
modulemd_module_index_merger_associate_index (merger, base_index , random_low);
modulemd_module_index_merger_associate_index (merger, override_index , random_high);
Expand Down

0 comments on commit f6e467e

Please sign in to comment.