Searched refs:ATF_REQUIRE_MSG (Results 1 - 4 of 4) sorted by relevance

/bind-9.6-ESV-R11/unit/atf-src/atf-c/
H A Dutils.c81 ATF_REQUIRE_MSG(fd != -1, "Cannot open %s", name);
122 ATF_REQUIRE_MSG(fd != -1, "Cannot open %s", name);
150 ATF_REQUIRE_MSG(input != -1, "Failed to open source file during "
154 ATF_REQUIRE_MSG(output != -1, "Failed to open destination file during "
160 ATF_REQUIRE_MSG(write(output, buffer, length) == length,
162 ATF_REQUIRE_MSG(length != -1, "Failed to read from %s during copy", source);
165 ATF_REQUIRE_MSG(fstat(input, &sb) != -1,
167 ATF_REQUIRE_MSG(fchmod(output, sb.st_mode) != -1,
193 ATF_REQUIRE_MSG(fd != -1, "Cannot create file %s", name);
H A Dmacros.h134 #define ATF_REQUIRE_MSG(x, fmt, ...) \ macro
159 ATF_REQUIRE_MSG((x) == (y), "%s != %s", #x, #y)
165 ATF_REQUIRE_MSG((x) == (y), "%s != %s: " fmt, #x, #y, ##__VA_ARGS__)
171 ATF_REQUIRE_MSG(strcmp(x, y) == 0, "%s != %s (%s != %s)", #x, #y, x, y)
177 ATF_REQUIRE_MSG(strcmp(x, y) == 0, "%s != %s (%s != %s): " fmt, \
185 ATF_REQUIRE_MSG(atf_utils_grep_string("%s", string, regexp), \
193 ATF_REQUIRE_MSG(atf_utils_grep_string("%s", string, regexp), \
H A Dutils_test.c62 ATF_REQUIRE_MSG(fd != -1, "Cannot open %s", path);
H A Dmacros_test.c167 H_DEF(require_msg_ ## id, ATF_REQUIRE_MSG(condition, msg))
547 * Test cases for the ATF_REQUIRE and ATF_REQUIRE_MSG macros.
559 "ATF_REQUIRE_MSG macros");

Completed in 47 milliseconds