unit: Fix broken SNEP read unit test
authorOlivier Guiter <olivier.guiter@linux.intel.com>
Mon, 15 Apr 2013 11:36:55 +0000 (13:36 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 15 Apr 2013 12:15:35 +0000 (14:15 +0200)
commit9866356f2349ff864869709785e036b366107222
treed525b6c16510e07ff82b6f87f0b88d60f6339c0c
parent7fe74d8fb8485067e286ad3d7417e85c45107448
unit: Fix broken SNEP read unit test

In "crash-1" loop, the snep_data was added to the slist, but not removed
because of a specific exit condition. This fix swaps the test condition
and the action on slist, in order to add the fragment only when the length
test passed.
unit/test-snep-read.c