Skip to content

Commit 5cee1e1

Browse files
committed
Fix a bug in the develop feature tests
There was a bug that some filesystem paths were always created with POSIX style directory separators. Now they are created in a platform-specific way. Related to #127
1 parent eba091d commit 5cee1e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tdevelopfeature.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ suite "develop feature":
243243
test "can add not a dependency to develop file":
244244
cd dependentPkgPath:
245245
cleanFile developFileName
246-
const srcDirTestPath = "../srcdirtest"
246+
const srcDirTestPath = "../srcdirtest".normalizedPath
247247
let (output, exitCode) = execNimble("develop", &"-a:{srcDirTestPath}")
248248
check exitCode == QuitSuccess
249249
let lines = output.processOutput
@@ -904,6 +904,6 @@ suite "develop feature":
904904
includeFileName, developFileName))
905905
check lines.inLinesOrdered(failedToLoadFileMsg(invalidInclFilePath))
906906
let expectedDevelopFileContent = developFile(
907-
@[includeFileName], @[dep2Path, &"{installDir}/{pkgAName}"])
907+
@[includeFileName], @[dep2Path, installDir / pkgAName])
908908
check parseFile(developFileName) ==
909909
parseJson(expectedDevelopFileContent)

0 commit comments

Comments
 (0)