Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CxxTest failing on GitHub macOS builders #160

Open
rboston628 opened this issue Apr 28, 2024 · 0 comments
Open

CxxTest failing on GitHub macOS builders #160

rboston628 opened this issue Apr 28, 2024 · 0 comments

Comments

@rboston628
Copy link

When running on GitHub's macOS runners, the following error is now being generated:

cxxtestgen --error-printer -o tests/tests.cpp tests/*.h
/opt/homebrew/lib/python3.12/site-packages/cxxtest/cxxtest_parser.py:43: SyntaxWarning: invalid escape sequence '\s'
  lineCont_re = re.compile('(.*)\\\s*$')
/opt/homebrew/lib/python3.12/site-packages/cxxtest/cxxtest_parser.py:130: SyntaxWarning: invalid escape sequence '\s'
  classdef = '(?:::\s*)?(?:\w+\s*::\s*)*\w+'
/opt/homebrew/lib/python3.12/site-packages/cxxtest/cxxtest_parser.py:131: SyntaxWarning: invalid escape sequence '\s'
  baseclassdef = '(?:public|private|protected)\s+%s' % (classdef,)
/opt/homebrew/lib/python3.12/site-packages/cxxtest/cxxtest_parser.py:134: SyntaxWarning: invalid escape sequence '\s'
  testsuite = '(?:(?:::)?\s*CxxTest\s*::\s*)?TestSuite'
/opt/homebrew/lib/python3.12/site-packages/cxxtest/cxxtest_parser.py:39: SyntaxWarning: "is" with 'int' literal. Did you mean "=="?
  if len(suites) is 0 and not options.root:
/opt/homebrew/lib/python3.12/site-packages/cxxtest/cxxtest_parser.py:236: SyntaxWarning: "is not" with 'int' literal. Did you mean "!="?
  if len(suite['tests']) is not 0:
/opt/homebrew/lib/python3.12/site-packages/cxxtest/cxx_parser.py:2090: SyntaxWarning: "is" with 'str' literal. Did you mean "=="?
  if p.type is "":
g++ --std=c++14 -o tests/tests.out tests/tests.cpp -Isrc -Wuninitialized -Weffc++ --pedantic-errors
tests/tests.cpp:9:10: fatal error: 'cxxtest/TestListener.h' file not found
#include <cxxtest/TestListener.h>

The cxxtest package is being downloaded with:

brew install cxxtest

on macos-latest

The filetests/tests.cpp was generated using cxxtestgen as shown above. The several syntax warnings about the use of is in python are probably unrelated. The issue seems to be that the TestListener.h file is no longer being found inside the homebrew package.

The same workflow setup has run with no issues before now, as recently as two weeks ago (say April 12). It's worth noting the tests compile and run on my local laptop (macOS 12.4 with Apple clang version 14.0.0), and that the tests pass on the linux runners using latest gcc and gcc9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant