glib r7415 - in trunk: . glib/tests
- From: ryanl svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r7415 - in trunk: . glib/tests
- Date: Fri, 29 Aug 2008 06:02:47 +0000 (UTC)
Author: ryanl
Date: Fri Aug 29 06:02:47 2008
New Revision: 7415
URL: http://svn.gnome.org/viewvc/glib?rev=7415&view=rev
Log:
2008-08-28 Ryan Lortie <desrt desrt ca>
Fixup for test case in previous commit.
* glib/tests/strfuncs.c: don't fail if we can't open the test data.
This happens if $(builddir) != $(srcdir) (like when doing 'make
distcheck'). Quick workaround for now until #549783 can be fixed.
Modified:
trunk/ChangeLog
trunk/glib/tests/strfuncs.c
Modified: trunk/glib/tests/strfuncs.c
==============================================================================
--- trunk/glib/tests/strfuncs.c (original)
+++ trunk/glib/tests/strfuncs.c Fri Aug 29 06:02:47 2008
@@ -1062,6 +1062,11 @@
* side.
*/
before = g_mapped_file_new ("4096-random-bytes", TRUE, NULL);
+
+ /* quick workaround until #549783 can be fixed */
+ if (before == NULL)
+ return;
+
file = g_mapped_file_new ("4096-random-bytes", TRUE, NULL);
after = g_mapped_file_new ("4096-random-bytes", TRUE, NULL);
g_mapped_file_free (before);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]