def test_env(self):
    src = open(path_from_root('tests', 'env', 'src.c')).read()
    expected = open(path_from_root('tests', 'env', 'output.txt')).read()
    if (not self.is_wasm_backend()):
        expected = expected.replace('after alteration: Qest5', 'after alteration: test5')
    self.do_run(src, [expected.replace('{{{ THIS_PROGRAM }}}', self.in_dir('src.cpp.o.js')).replace('\\', '/'), expected.replace('{{{ THIS_PROGRAM }}}', './this.program')])
def test_env(self):
    src = open(path_from_root('tests', 'env', 'src.c')).read()
    expected = open(path_from_root('tests', 'env', 'output.txt')).read()
    if (not self.is_wasm_backend()):
        expected = expected.replace('after alteration: Qest5', 'after alteration: test5')
    self.do_run(src, [expected.replace('{{{ THIS_PROGRAM }}}', self.in_dir('src.cpp.o.js')).replace('\\', '/'), expected.replace('{{{ THIS_PROGRAM }}}', './this.program')])