Skip to content

Commit a391d41

Browse files
committed
Add new test case for checking escaping of double quotes in options
1 parent dce2c60 commit a391d41

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/input/generic.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
const char *tmp = DOUBLE_QUOTES;

tests/test_generic.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import pytest
2+
import utils
3+
4+
5+
class TestGeneric(utils.CIFTestCase):
6+
# Indeed, cif.cpp does not require to escape double quotes unlike it was for cif.c.
7+
@pytest.mark.xfail
8+
def test_escaping_double_quotes(self):
9+
self.cif.run(cif_input='input/generic.c', stage='C-backend', cif_output='work/simple.c', aspectator_opts=['-DDOUBLE_QUOTES=\\"double quotes\\"'])

0 commit comments

Comments
 (0)