Merge branch '487-ci-memcheck' into 'master'

Add CI job for running tests under Valgrind

Closes #487

See merge request GNOME/glib!169
This commit is contained in:
Sebastian Dröge
2019-09-02 13:52:35 +00:00
8 changed files with 142 additions and 18 deletions

View File

@@ -409,9 +409,11 @@ test_g_rec_mutex_locker (void)
g_thread_join (thread);
}
/* Verify that the mutex is unlocked again */
thread = g_thread_new ("rec mutex unlocked", rec_mutex_unlocked_thread, &rec_mutex);
g_thread_join (thread);
/* Verify that the mutex is unlocked again */
thread = g_thread_new ("rec mutex unlocked", rec_mutex_unlocked_thread, &rec_mutex);
g_thread_join (thread);
g_rec_mutex_clear (&rec_mutex);
}
/* Thread function to check that an rw lock given in @data cannot be writer locked */
@@ -478,6 +480,8 @@ test_g_rw_lock_lockers (void)
* the locks taken above have been correctly released. */
g_assert_true (g_rw_lock_writer_trylock (&lock));
g_rw_lock_writer_unlock (&lock);
g_rw_lock_clear (&lock);
}
static void