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