File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
lldb/test/API/lang/swift/path_with_colons Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
- SWIFT_SOURCES := main.swift
2
-
3
- include Makefile.rules
1
+ all :
2
+ $(MAKE ) -C " pro:ject"
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ def do_test(self):
45
45
copied_src = os .path .join (colon_dir , 'main.swift' )
46
46
dst = os .path .join (colon_dir , 'a.out' )
47
47
dst_makefile = os .path .join (colon_dir , 'Makefile' )
48
+ exe = os .path .join (colon_dir , 'a.out' )
48
49
49
50
if not os .path .exists (colon_dir ):
50
51
os .makedirs (colon_dir )
@@ -53,26 +54,23 @@ def do_test(self):
53
54
# clean slate for the next test case.
54
55
def cleanup ():
55
56
shutil .rmtree (colon_dir )
56
- os .chdir (self .getSourceDir ())
57
57
58
58
# Execute the cleanup function during test case tear down.
59
59
self .addTearDownHook (cleanup )
60
60
61
61
f = open (dst_makefile , 'w' )
62
62
f .write ('''
63
- LEVEL = ../../../../make
64
63
SWIFT_SOURCES := main.swift
65
- include $(LEVEL)/ Makefile.rules
64
+ include Makefile.rules
66
65
''' )
67
66
f .close ()
68
67
69
68
shutil .copy (src , copied_src )
70
69
71
- os .chdir (colon_dir )
72
70
self .build ()
73
71
74
72
# Create the target
75
- target = self .dbg .CreateTarget (self . getBuildArtifact () )
73
+ target = self .dbg .CreateTarget (exe )
76
74
self .assertTrue (target , VALID_TARGET )
77
75
78
76
# Don't allow ansi highlighting to interfere with the output.
You can’t perform that action at this time.
0 commit comments