]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-mempress.c
ASSERT_STREQ for simple cases
[thirdparty/systemd.git] / src / test / test-mempress.c
index 1c3f6463b2d1ef020cea886fc8fa765c9c316207..44f1f4cf5f0c70d61342cdf256536d6049116206 100644 (file)
@@ -40,7 +40,7 @@ static void *fake_pressure_thread(void *p) {
         assert_se(cfd >= 0);
         char buf[STRLEN("hello")+1] = {};
         assert_se(read(cfd, buf, sizeof(buf)-1) == sizeof(buf)-1);
-        assert_se(streq(buf, "hello"));
+        ASSERT_STREQ(buf, "hello");
         assert_se(write(cfd, &(const char) { 'z' }, 1) == 1);
 
         return 0;