diff options
Diffstat (limited to 'src/common/test.h')
-rw-r--r-- | src/common/test.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/test.h b/src/common/test.h index d30a458e02..d2b449db43 100644 --- a/src/common/test.h +++ b/src/common/test.h @@ -72,7 +72,7 @@ extern int have_failed; #define test_streq(expr1, expr2) \ STMT_BEGIN \ - char *v1=(expr1), *v2=(expr2); \ + const char *v1=(expr1), *v2=(expr2); \ if(!strcmp(v1,v2)) { printf("."); } else { \ have_failed = 1; \ printf("\nFile %s: line %d (%s): Assertion failed: (%s==%s)\n"\ @@ -87,7 +87,7 @@ extern int have_failed; #define test_strneq(expr1, expr2) \ STMT_BEGIN \ - char *v1=(expr1), *v2=(expr2); \ + const char *v1=(expr1), *v2=(expr2); \ if(strcmp(v1,v2)) { printf("."); } else { \ have_failed = 1; \ printf("\nFile %s: line %d (%s): Assertion failed: (%s!=%s)\n"\ |