Skip to content

Commit

Permalink
bug: valgrind throws when importing into FileManager into Config
Browse files Browse the repository at this point in the history
  • Loading branch information
noahehall committed Mar 15, 2023
1 parent a83ddba commit f139355
Show file tree
Hide file tree
Showing 3 changed files with 163 additions and 28 deletions.
5 changes: 1 addition & 4 deletions src/boat/private/Config.nim
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ import std/[
strutils,
]

# TODO: simply importing FileManager causes valgrind to throw
# ^ weird cuz nothing is in there but stubs
import BoatErrors, BoatConstants

import BoatErrors, BoatConstants, FileManager

type Config* = ref object of RootObj
use*: string ## \
Expand Down
5 changes: 3 additions & 2 deletions src/boat/private/FileManager.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@

import ../../../bdd

# valgrind throws if this file is imported into ./Config.nim
import std/[
asyncdispatch,
asyncdispatch, # causes valgrind to throw
locks,
threadpool,
threadpool, # causes valgrind to throw
]

import BoatConstants, BoatErrors
Expand Down
181 changes: 159 additions & 22 deletions testresults.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f139355

Please sign in to comment.