Lines Matching defs:loc
35 pass (const location &/*loc*/, const char */*msg*/)
43 fail (const location &loc, const char *msg)
45 fprintf (stderr,"%s:%i: %s: FAIL: %s\n", loc.m_file, loc.m_line,
46 loc.m_function, msg);
53 fail_formatted (const location &loc, const char *fmt, ...)
57 fprintf (stderr, "%s:%i: %s: FAIL: ", loc.m_file, loc.m_line,
58 loc.m_function);
71 assert_streq (const location &loc,
78 fail_formatted (loc, "ASSERT_STREQ (%s, %s) val1=NULL val2=NULL",
81 fail_formatted (loc, "ASSERT_STREQ (%s, %s) val1=NULL val2=\"%s\"",
85 fail_formatted (loc, "ASSERT_STREQ (%s, %s) val1=\"%s\" val2=NULL",
90 pass (loc, "ASSERT_STREQ");
92 fail_formatted (loc, "ASSERT_STREQ (%s, %s) val1=\"%s\" val2=\"%s\"",
103 assert_str_contains (const location &loc,
111 fail_formatted (loc, "ASSERT_STR_CONTAINS (%s, %s) haystack=NULL",
116 fail_formatted (loc,
122 pass (loc, "ASSERT_STR_CONTAINS");
125 (loc, "ASSERT_STR_CONTAINS (%s, %s) haystack=\"%s\" needle=\"%s\"",
136 assert_str_startswith (const location &loc,
144 fail_formatted (loc, "ASSERT_STR_STARTSWITH (%s, %s) str=NULL",
149 fail_formatted (loc,
155 pass (loc, "ASSERT_STR_STARTSWITH");
158 (loc, "ASSERT_STR_STARTSWITH (%s, %s) str=\"%s\" prefix=\"%s\"",
184 temp_source_file::temp_source_file (const location &loc,
191 fail_formatted (loc, "unable to open tempfile: %s", get_filename ());
221 read_file (const location &loc, const char *path)
225 fail_formatted (loc, "unable to open file: %s", path);
250 fail_formatted (loc, "error reading from %s: %s", path,