]> sigrok.org Git - libsigrok.git/commit
Fix test failure
authorMarvin Schmidt <redacted>
Tue, 26 Nov 2013 07:50:52 +0000 (08:50 +0100)
committerUwe Hermann <redacted>
Sat, 7 Dec 2013 11:25:18 +0000 (12:25 +0100)
commitc3e2b08dc9a252ada9b9a51ae47ea588135944e1
tree1c27b671d9902714a3448d8ebae2a82243c0c92f
parent0f4a4350579604c874e1ad4b741f9b059f3585f3
Fix test failure

The GError object has to initialized to NULL before being passed to
g_file_set_contents or it will throw the following critical warning

GLib-CRITICAL **: g_file_set_contents: assertion 'error == NULL || *error == NULL' failed

and return FALSE, which leads to failed assertion and subsequently
to the test failing
tests/lib.c