Skip to content

Commit

Permalink
Trivial: Make TestDub.ProjectPath a NativePath
Browse files Browse the repository at this point in the history
If unittest code wants to reference it, it will be much more useful as NativePath.
  • Loading branch information
Geod24 authored and dlang-bot committed Feb 12, 2024
1 parent 5a9e230 commit 1c174ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/dub/test/base.d
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public void disableLogging()
public class TestDub : Dub
{
/// Convenience constants for use in unittets
public static immutable ProjectPath = "/dub/project/";
public static immutable ProjectPath = NativePath("/dub/project/");
/// Ditto
public static immutable SpecialDirs Paths = {
temp: "/dub/temp/",
Expand All @@ -154,7 +154,7 @@ public class TestDub : Dub
};

/// Forward to base constructor
public this (string root = ProjectPath,
public this (string root = ProjectPath.toNativeString(),
PackageSupplier[] extras = null,
SkipPackageSuppliers skip = SkipPackageSuppliers.none)
{
Expand Down Expand Up @@ -282,7 +282,7 @@ package class TestPackageManager : PackageManager

this()
{
NativePath local = NativePath(TestDub.ProjectPath);
NativePath local = TestDub.ProjectPath;
NativePath user = TestDub.Paths.userSettings;
NativePath system = TestDub.Paths.systemSettings;
this.fs = new FSEntry();
Expand Down Expand Up @@ -577,7 +577,7 @@ public class FSEntry
this.mkdir(TestDub.Paths.userPackages);
this.mkdir(TestDub.Paths.cache);

this.mkdir(NativePath(TestDub.ProjectPath));
this.mkdir(TestDub.ProjectPath);
}
}

Expand Down

0 comments on commit 1c174ef

Please sign in to comment.