[glib/halfline-no-spawn] tests: More probing
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/halfline-no-spawn] tests: More probing
- Date: Tue, 18 Oct 2022 18:42:22 +0000 (UTC)
commit 1bd986c84319f8bd1f8f5c3f93f1e6a456c68591
Author: Ray Strode <rstrode redhat com>
Date: Tue Oct 18 14:41:59 2022 -0400
tests: More probing
gio/tests/file.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/gio/tests/file.c b/gio/tests/file.c
index ccac590a41..adf3f6e118 100644
--- a/gio/tests/file.c
+++ b/gio/tests/file.c
@@ -3535,6 +3535,7 @@ test_query_zero_length_content_type (void)
GFileInfo *file_info;
GError *error = NULL;
GFileIOStream *iostream;
+ goffset size;
g_test_bug ("https://bugzilla.gnome.org/show_bug.cgi?id=755795");
/* This is historic behaviour. See:
@@ -3556,6 +3557,11 @@ test_query_zero_length_content_type (void)
NULL, &error);
g_assert_no_error (error);
+ g_test_message ("empty file has content type %s", g_file_info_get_content_type (file_info));
+
+ size = g_file_info_get_size (file_info);
+ g_assert_cmpint (size, ==, 0);
+
g_assert_cmpstr (g_file_info_get_content_type (file_info), ==, "text/plain");
g_clear_object (&file_info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]