Skip to content

Commit 633c615

Browse files
committed
also check for -g in test_precision_flags and test_toolchain_compiler_env_vars
1 parent 1b9a44a commit 633c615

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/framework/toolchain.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def test_toolchain_compiler_env_vars(self):
388388
self.assertEqual(os.getenv('OMPI_F77'), 'gfortran')
389389
self.assertEqual(os.getenv('OMPI_FC'), 'gfortran')
390390

391-
flags_regex = re.compile(r"-O2 -ftree-vectorize -m(arch|cpu)=native -fno-math-errno")
391+
flags_regex = re.compile(r"-O2 -ftree-vectorize -m(arch|cpu)=native -fno-math-errno -g")
392392
for key in ['CFLAGS', 'CXXFLAGS', 'F90FLAGS', 'FCFLAGS', 'FFLAGS']:
393393
val = os.getenv(key)
394394
self.assertTrue(flags_regex.match(val), "'%s' should match pattern '%s'" % (val, flags_regex.pattern))
@@ -928,7 +928,7 @@ def test_precision_flags(self):
928928
tc.set_options({})
929929
with self.mocked_stdout_stderr():
930930
tc.prepare()
931-
flags_regex = re.compile(r"-O2 -ftree-vectorize -m(arch|cpu)=native -fno-math-errno")
931+
flags_regex = re.compile(r"-O2 -ftree-vectorize -m(arch|cpu)=native -fno-math-errno -g")
932932
for var in flag_vars:
933933
val = os.getenv(var)
934934
self.assertTrue(flags_regex.match(val), "'%s' should match pattern '%s'" % (val, flags_regex.pattern))
@@ -947,7 +947,7 @@ def test_precision_flags(self):
947947
tc.prepare()
948948
for var in flag_vars:
949949
if enable:
950-
regex = re.compile(r"-O2 -ftree-vectorize -m(arch|cpu)=native %s" % prec_flags[prec])
950+
regex = re.compile(r"-O2 -ftree-vectorize -m(arch|cpu)=native %s -g" % prec_flags[prec])
951951
else:
952952
regex = flags_regex
953953
val = os.getenv(var)

0 commit comments

Comments
 (0)