tests: Make GLib warnings fatal

This commit is contained in:
Colin Walters 2011-11-04 15:58:32 -04:00
parent dd37e46172
commit 889f454cb1
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,8 @@ test_tmpdir=`mktemp -d "$TMPDIR/ostree-tests.XXXXXXXXXX"`
cd "$test_tmpdir" cd "$test_tmpdir"
touch "$test_tmpdir/.test$$" touch "$test_tmpdir/.test$$"
export G_DEBUG=fatal-warnings
die () { die () {
if test -z "$OT_TESTS_SAVE_TEMPS"; then if test -z "$OT_TESTS_SAVE_TEMPS"; then
test -f "$test_tmpdir/.test$$" && rm -rf "$test_tmpdir" test -f "$test_tmpdir/.test$$" && rm -rf "$test_tmpdir"