Commit 0d720e1
authored
Use a memcmp for the expected symbol name. (#100)
* Use a memcmp for the expected symbol name.
I believe that g++ does not guarantee what a particular
symbol name will be. Thus, in g++ 11.4.0 (what is in
Ubuntu 22.04), the symbol name here ended with "#2", while
in g++ 13.2.0 (what is in Ubuntu 24.04), the symbol name
ends with "#1". Given that we can't guarantee this, just
search for the first part of the name up to the number,
which should be good enough for this test.
Signed-off-by: Chris Lalancette <[email protected]>1 parent 115034b commit 0d720e1
1 file changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
91 | 96 | | |
92 | 97 | | |
93 | 98 | | |
| |||
0 commit comments