]> git.ipfire.org Git - thirdparty/kmod.git/blobdiff - testsuite/test-dependencies.c
testsuite: improve coverage of shared/util.h
[thirdparty/kmod.git] / testsuite / test-dependencies.c
index 6860a98d2692488751efe94f735f5f9e042294ea..bed6ad4f3b9f46aa0ae7c5b5046f1b5ec9179ee8 100644 (file)
@@ -12,8 +12,7 @@
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
 #include <errno.h>
@@ -24,7 +23,9 @@
 #include <string.h>
 #include <unistd.h>
 
-#include <libkmod.h>
+#include <shared/util.h>
+
+#include <libkmod/libkmod.h>
 
 #include "testsuite.h"
 
@@ -55,11 +56,11 @@ static int test_dependencies(const struct test *t)
                struct kmod_module *m = kmod_module_get_module(l);
                const char *name = kmod_module_get_name(m);
 
-               if (strcmp(name, "crc16") == 0)
+               if (streq(name, "crc16"))
                        crc16 = 1;
-               if (strcmp(name, "mbcache") == 0)
+               if (streq(name, "mbcache"))
                        mbcache = 1;
-               else if (strcmp(name, "jbd2") == 0)
+               else if (streq(name, "jbd2"))
                        jbd2 = 1;
 
                kmod_module_unref(m);