]> sigrok.org Git - libsigrok.git/blobdiff - tests/driver_all.c
rigol-ds: free memory that was allocated by SCPI get routines
[libsigrok.git] / tests / driver_all.c
index 585da1eaa7d6d3c8fb6228b02e1cbb52f4c8f356..2149568866b56f34d1aa312d179112eabacdd6c2 100644 (file)
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <config.h>
 #include <stdlib.h>
 #include <check.h>
-#include "../include/libsigrok/libsigrok.h"
+#include <libsigrok/libsigrok.h>
 #include "lib.h"
 
 /* Check whether at least one driver is available. */
@@ -28,7 +28,7 @@ START_TEST(test_driver_available)
 {
        struct sr_dev_driver **drivers;
 
-       drivers = sr_driver_list();
+       drivers = sr_driver_list(srtest_ctx);
        fail_unless(drivers != NULL, "No drivers found.");
 }
 END_TEST