Skip to content

Commit 1353f54

Browse files
committed
Adjusts test to not expect appending of - for flags
1 parent 72c41a6 commit 1353f54

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/framework/toolchainvariables.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,16 @@ class TCV(ToolchainVariables):
6262
tcv.join('MPICC', 'CC')
6363
self.assertEqual(str(tcv['MPICC']), "gcc")
6464

65-
tcv['F90'] = ['gfortran', 'foo', 'bar']
66-
self.assertEqual(tcv['F90'].__repr__(), "[['gfortran', 'foo', 'bar']]")
65+
tcv['F90'] = ['gfortran', '-foo', '-bar']
66+
self.assertEqual(tcv['F90'].__repr__(), "[['gfortran', '-foo', '-bar']]")
6767
self.assertEqual(str(tcv['F90']), "gfortran -foo -bar")
6868

69-
tcv.nappend('FLAGS', ['one', 'two'])
70-
x = tcv.nappend('FLAGS', ['three', 'four'])
69+
tcv.nappend('FLAGS', ['-one', '-two'])
70+
x = tcv.nappend('FLAGS', ['-three', '-four'])
7171
x.POSITION = -5 # sanitize will reorder, default POSITION is 0
72-
self.assertEqual(tcv['FLAGS'].__repr__(), "[['one', 'two'], ['three', 'four']]")
72+
self.assertEqual(tcv['FLAGS'].__repr__(), "[['-one', '-two'], ['-three', '-four']]")
7373
tcv['FLAGS'].sanitize() # sort on position, called by __str__ also
74-
self.assertEqual(tcv['FLAGS'].__repr__(), "[['three', 'four'], ['one', 'two']]")
74+
self.assertEqual(tcv['FLAGS'].__repr__(), "[['-three', '-four'], ['-one', '-two']]")
7575
self.assertEqual(str(tcv['FLAGS']), "-three -four -one -two")
7676

7777
# LIBBLAS is a LibraryList

0 commit comments

Comments
 (0)