tests: Strip newlines from g_warning and g_error

g_logv adds one for us already.
This commit is contained in:
Matthias Clasen 2016-02-28 12:21:29 -05:00
parent 664b166838
commit 7bd1012e51
3 changed files with 4 additions and 4 deletions

View File

@ -386,7 +386,7 @@ gtk_offscreen_box_add (GtkContainer *container,
else if (!offscreen_box->child2)
gtk_offscreen_box_add2 (offscreen_box, widget);
else
g_warning ("GtkOffscreenBox cannot have more than 2 children\n");
g_warning ("GtkOffscreenBox cannot have more than 2 children");
}
void

View File

@ -17,7 +17,7 @@ create_widget_factory_content (void)
"../demos/widget-factory/widget-factory.ui",
&error);
if (error != NULL)
g_error ("Failed to create widgets: %s\n", error->message);
g_error ("Failed to create widgets: %s", error->message);
result = GTK_WIDGET (gtk_builder_get_object (builder, "box1"));
g_object_ref (result);

View File

@ -66,7 +66,7 @@ create_shader (int type, const char *src)
buffer = g_malloc (log_len + 1);
glGetShaderInfoLog (shader, log_len, NULL, buffer);
g_warning ("Compile failure in %s shader:\n%s\n",
g_warning ("Compile failure in %s shader:\n%s",
type == GL_VERTEX_SHADER ? "vertex" : "fragment",
buffer);
@ -158,7 +158,7 @@ init_shaders (const char *vertex_shader_code,
buffer = g_malloc (log_len + 1);
glGetProgramInfoLog (program, log_len, NULL, buffer);
g_warning ("Linking failure:\n%s\n", buffer);
g_warning ("Linking failure:\n%s", buffer);
g_free (buffer);