Home | History | Annotate | Download | only in tests

Lines Matching full:g_assert

74   g_assert (fd != -1 && "g_mkstemp didn't work for template fooXXXXXX");
76 g_assert (i != -1 && "write() failed");
77 g_assert (i == hellolen && "write() has written too few bytes");
81 g_assert (i != -1 && "read() failed: %s");
82 g_assert (i == hellolen && "read() has got wrong number of bytes");
85 g_assert (strcmp (chars, hello) == 0 && "read() didn't get same string back");
92 g_assert (fd != -1 && "g_mkstemp didn't work for template fooXXXXXX.pdf");
112 g_assert (file != NULL && "fopen() failed");
116 g_assert (result == 0 && "symlink() failed");
118 g_assert (result == 0 && "symlink() failed");
122 g_assert (data != NULL && "couldn't read link1");
123 g_assert (strcmp (data, filename) == 0 && "link1 contains wrong data");
128 g_assert (data != NULL && "couldn't read link2");
129 g_assert (strcmp (data, link1) == 0 && "link2 contains wrong data");
134 g_assert (data == NULL && "could read link3");
139 g_assert (data == NULL && "could read regular file as link");
162 g_assert (g_file_test (filename, G_FILE_TEST_IS_REGULAR));
167 g_assert (strcmp (text, contents) == 0 && "content mismatch");