@@ -35,8 +35,8 @@ function suite.onClangTidy()
3535 test .capture [[
3636<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
3737 <LinkIncremental>true</LinkIncremental>
38- <OutDir>bin\Debug\</OutDir>
39- <IntDir>obj\Debug\</IntDir>
38+ <OutDir>$(ProjectDir) bin\Debug\</OutDir>
39+ <IntDir>$(ProjectDir) obj\Debug\</IntDir>
4040 <TargetName>MyProject</TargetName>
4141 <TargetExt>.exe</TargetExt>
4242</PropertyGroup>
@@ -53,8 +53,8 @@ function suite.onRunCodeAnalysis()
5353 test .capture [[
5454<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
5555 <LinkIncremental>true</LinkIncremental>
56- <OutDir>bin\Debug\</OutDir>
57- <IntDir>obj\Debug\</IntDir>
56+ <OutDir>$(ProjectDir) bin\Debug\</OutDir>
57+ <IntDir>$(ProjectDir) obj\Debug\</IntDir>
5858 <TargetName>MyProject</TargetName>
5959 <TargetExt>.exe</TargetExt>
6060</PropertyGroup>
7070 test .capture [[
7171<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
7272 <LinkIncremental>true</LinkIncremental>
73- <OutDir>bin\Debug\</OutDir>
74- <IntDir>obj\Debug\</IntDir>
73+ <OutDir>$(ProjectDir) bin\Debug\</OutDir>
74+ <IntDir>$(ProjectDir) obj\Debug\</IntDir>
7575 <TargetName>MyProject</TargetName>
7676 <TargetExt>.exe</TargetExt>
7777</PropertyGroup>
104104 prepare ()
105105 test .capture [[
106106<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
107- <OutDir>bin\Debug\</OutDir>
107+ <OutDir>$(ProjectDir) bin\Debug\</OutDir>
108108 ]]
109109 end
110110
131131 test .capture [[
132132<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
133133 <LinkIncremental>true</LinkIncremental>
134- <OutDir>..\bin\</OutDir>
134+ <OutDir>$(ProjectDir) ..\bin\</OutDir>
135135 ]]
136136 end
137137
142142 test .capture [[
143143<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
144144 <LinkIncremental>true</LinkIncremental>
145- <OutDir>..\bin\</OutDir>
145+ <OutDir>$(ProjectDir)..\bin\</OutDir>
146+ ]]
147+ end
148+
149+ function suite .outDir_onTargetDirAbsolute ()
150+ targetdir " C:/bin"
151+ prepare ()
152+ test .capture [[
153+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
154+ <LinkIncremental>true</LinkIncremental>
155+ <OutDir>C:\bin\</OutDir>
146156 ]]
147157 end
148158
156166 test .capture [[
157167<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
158168 <LinkIncremental>true</LinkIncremental>
159- <OutDir>bin\Debug\</OutDir>
160- <IntDir>..\tmp\Debug\</IntDir>
169+ <OutDir>$(ProjectDir)bin\Debug\</OutDir>
170+ <IntDir>$(ProjectDir)..\tmp\Debug\</IntDir>
171+ ]]
172+ end
173+
174+ function suite .intDir_onTargetDirAbsolute ()
175+ objdir " C:/tmp"
176+ prepare ()
177+ test .capture [[
178+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
179+ <LinkIncremental>true</LinkIncremental>
180+ <OutDir>$(ProjectDir)bin\Debug\</OutDir>
181+ <IntDir>C:\tmp\Debug\</IntDir>
161182 ]]
162183 end
163184
171192 test .capture [[
172193<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
173194 <LinkIncremental>true</LinkIncremental>
174- <OutDir>bin\Debug\</OutDir>
175- <IntDir>obj\Debug\</IntDir>
195+ <OutDir>$(ProjectDir) bin\Debug\</OutDir>
196+ <IntDir>$(ProjectDir) obj\Debug\</IntDir>
176197 <TargetName>MyTarget</TargetName>
177198 ]]
178199 end
210231 test .capture [[
211232<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
212233 <LinkIncremental>true</LinkIncremental>
213- <OutDir>bin\Debug\</OutDir>
234+ <OutDir>$(ProjectDir) bin\Debug\</OutDir>
214235 ]]
215236 end
216237
225246 test .capture [[
226247<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
227248 <LinkIncremental>true</LinkIncremental>
228- <OutDir>bin\Debug\</OutDir>
229- <IntDir>obj\Debug\</IntDir>
249+ <OutDir>$(ProjectDir) bin\Debug\</OutDir>
250+ <IntDir>$(ProjectDir) obj\Debug\</IntDir>
230251 <TargetName>MyProject</TargetName>
231252 <TargetExt>.exe</TargetExt>
232253 <GenerateManifest>false</GenerateManifest>
244265 test .capture [[
245266<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
246267 <LinkIncremental>true</LinkIncremental>
247- <OutDir>bin\Debug\</OutDir>
248- <IntDir>obj\Debug\</IntDir>
268+ <OutDir>$(ProjectDir) bin\Debug\</OutDir>
269+ <IntDir>$(ProjectDir) obj\Debug\</IntDir>
249270 <TargetName>MyProject</TargetName>
250271 <TargetExt>
251272 </TargetExt>
265286 test .capture [[
266287<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
267288 <LinkIncremental>true</LinkIncremental>
268- <OutDir>bin\Debug\</OutDir>
269- <IntDir>obj\Debug\</IntDir>
289+ <OutDir>$(ProjectDir) bin\Debug\</OutDir>
290+ <IntDir>$(ProjectDir) obj\Debug\</IntDir>
270291 <TargetName>MyProject</TargetName>
271292 <TargetExt>.exe</TargetExt>
272293 <ExtensionsToDeleteOnClean>*.temp1;*.temp2;$(ExtensionsToDeleteOnClean)</ExtensionsToDeleteOnClean>
285306 test .capture [[
286307<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
287308 <LinkIncremental>true</LinkIncremental>
288- <OutDir>bin\Debug\</OutDir>
289- <IntDir>obj\Debug\</IntDir>
309+ <OutDir>$(ProjectDir) bin\Debug\</OutDir>
310+ <IntDir>$(ProjectDir) obj\Debug\</IntDir>
290311 <TargetName>MyProject</TargetName>
291312 <TargetExt>.exe</TargetExt>
292313 <IncludePath>$(DXSDK_DIR)\Include;$(IncludePath)</IncludePath>
300321 test .capture [[
301322<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
302323 <LinkIncremental>true</LinkIncremental>
303- <OutDir>bin\Debug\</OutDir>
304- <IntDir>obj\Debug\</IntDir>
324+ <OutDir>$(ProjectDir) bin\Debug\</OutDir>
325+ <IntDir>$(ProjectDir) obj\Debug\</IntDir>
305326 <TargetName>MyProject</TargetName>
306327 <TargetExt>.exe</TargetExt>
307328 <LibraryPath>$(DXSDK_DIR)\lib\x86;$(LibraryPath)</LibraryPath>
319340 test .capture [[
320341<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
321342 <LinkIncremental>true</LinkIncremental>
322- <OutDir>bin\Debug\</OutDir>
323- <IntDir>obj\Debug\</IntDir>
343+ <OutDir>$(ProjectDir) bin\Debug\</OutDir>
344+ <IntDir>$(ProjectDir) obj\Debug\</IntDir>
324345 <TargetName>MyProject</TargetName>
325346 <TargetExt>.exe</TargetExt>
326347 <ExecutablePath>$(ProjectDir)..\Include;$(ExecutablePath)</ExecutablePath>
334355 test .capture [[
335356<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
336357 <LinkIncremental>true</LinkIncremental>
337- <OutDir>bin\Debug\</OutDir>
338- <IntDir>obj\Debug\</IntDir>
358+ <OutDir>$(ProjectDir) bin\Debug\</OutDir>
359+ <IntDir>$(ProjectDir) obj\Debug\</IntDir>
339360 <TargetName>MyProject</TargetName>
340361 <TargetExt>.exe</TargetExt>
341362 <ExecutablePath>C:\Include;$(ExecutablePath)</ExecutablePath>
0 commit comments