Skip to content

Commit

Permalink
tests/newruntime_misc: Increment allocCount
Browse files Browse the repository at this point in the history
Increments overall allocations in `tnewruntime_misc` test. This is
because `getEnv` now does an additional allocation: allocation of the
UTF-16 string used as parameter to `c_wgetenv`.
  • Loading branch information
Håvard Mjaavatten committed Aug 8, 2022
1 parent cb2628c commit 4d4fe8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/destructor/tnewruntime_misc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ axc
...
destroying GenericObj[T] GenericObj[system.int]
test
(allocCount: 12, deallocCount: 10)
(allocCount: 13, deallocCount: 11)
3'''
"""

Expand Down

0 comments on commit 4d4fe8b

Please sign in to comment.