Lines Matching defs:lineno

12 void tst_assert_int(const char *file, const int lineno, const char *path, int val)
16 safe_file_scanf(file, lineno, NULL, path, "%d", &sys_val);
19 tst_res_(file, lineno, TPASS, "%s = %d", path, val);
23 tst_res_(file, lineno, TFAIL, "%s != %d got %d", path, val, sys_val);
26 void tst_assert_ulong(const char *file, const int lineno, const char *path, unsigned long val)
30 safe_file_scanf(file, lineno, NULL, path, "%lu", &sys_val);
33 tst_res_(file, lineno, TPASS, "%s = %lu", path, val);
37 tst_res_(file, lineno, TFAIL, "%s != %lu got %lu", path, val, sys_val);
40 void tst_assert_file_int(const char *file, const int lineno, const char *path, const char *prefix, int val)
46 file_lines_scanf(file, lineno, NULL, 1, path, fmt, &sys_val);
49 tst_res_(file, lineno, TPASS, "%s %s = %d", path, prefix, sys_val);
53 tst_res_(file, lineno, TFAIL, "%s %s != %d got %d", path, prefix, val, sys_val);
56 void tst_assert_str(const char *file, const int lineno, const char *path, const char *val)
60 safe_file_scanf(file, lineno, NULL, path, "%1023s", sys_val);
62 tst_res_(file, lineno, TPASS, "%s = '%s'", path, val);
66 tst_res_(file, lineno, TFAIL, "%s != '%s' got '%s'", path, val, sys_val);
69 void tst_assert_file_str(const char *file, const int lineno, const char *path, const char *prefix, const char *val)
75 file_lines_scanf(file, lineno, NULL, 1, path, fmt, sys_val);
78 tst_res_(file, lineno, TPASS, "%s %s = '%s'", path, prefix, sys_val);
82 tst_res_(file, lineno, TFAIL, "%s %s != '%s' got '%s'", path, prefix, val, sys_val);