Skip to content

Commit b45838d

Browse files
committed
Add test for importPaths ".."
1 parent f65fbec commit b45838d

File tree

6 files changed

+31
-0
lines changed

6 files changed

+31
-0
lines changed

test/issue2637-parent-directory.sh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
. $(dirname "${BASH_SOURCE[0]}")/common.sh
6+
cd "${CURR_DIR}/issue2637-parent-directory"
7+
test ! -e bad || rmdir bad
8+
mkdir -m 000 bad
9+
trap 'rmdir bad' EXIT
10+
11+
(
12+
cd pkg
13+
$DUB run
14+
)

test/issue2637-parent-directory/.no_build

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/pkg
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name "pkg"
2+
targetType "executable"
3+
sourceFiles "prog.d"
4+
importPaths ".."
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module pkg.mod;
2+
3+
enum message = "Hello";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module pkg.prog;
2+
3+
import std.stdio;
4+
import pkg.mod;
5+
6+
void main()
7+
{
8+
writeln(message);
9+
}

0 commit comments

Comments
 (0)