Skip to content
Snippets Groups Projects
Commit 2f764cc0 authored by Virgile Prevosto's avatar Virgile Prevosto Committed by Andre Maroneze
Browse files

[machdep] use markdown backtick to delimit typenames in tests

Workaround odd gcc behavior in which `'` gets escaped as `\'` in diagnostic
parent ff31181a
No related branches found
No related tags found
No related merge requests found
...@@ -191,7 +191,7 @@ def find_value(name, typ, output): ...@@ -191,7 +191,7 @@ def find_value(name, typ, output):
return int(x) return int(x)
elif typ == "type": elif typ == "type":
expected = "'([^']+)'" expected = "`([^`]+)`"
def conversion(x): def conversion(x):
return x return x
......
...@@ -39,6 +39,6 @@ ...@@ -39,6 +39,6 @@
#define mkstr(s) #s #define mkstr(s) #s
#define TEST_TYPE_COMPATIBLE(T1, T2) \ #define TEST_TYPE_COMPATIBLE(T1, T2) \
_Static_assert(!COMPATIBLE(T1, T2), "" mkstr(T2) " is '" #T1 "'"); _Static_assert(!COMPATIBLE(T1, T2), "" mkstr(T2) " is `" #T1 "`");
#define TEST_TYPE_IS(type) TEST_TYPE_COMPATIBLE(type, TEST_TYPE) #define TEST_TYPE_IS(type) TEST_TYPE_COMPATIBLE(type, TEST_TYPE)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment