29 lines · plain
1# REQUIRES: target-windows2 3## This checks that when starting lldb (or using `target create`) with a4## program name which is on $PATH, or not specify the .exe suffix of a program5## in the working directory on Windows, lldb can still detect the target6## architecture correctly instead of producing an error.7 8# RUN: mkdir -p "%t.dir"9# RUN: %clang_host -g0 -O0 %S/Inputs/main.c -o %t.dir/testmain.exe10 11## Test with full path to exe12# RUN: %lldb %t.dir/testmain.exe -b | FileCheck %s13 14## Test with exe on path, with .exe suffix15# RUN: env PATH="%t.dir%{pathsep}%{PATH}" %lldb testmain.exe -b | FileCheck %s16 17## Test with exe on path, without .exe suffix18# RUN: env PATH="%t.dir%{pathsep}%{PATH}" %lldb testmain -b | FileCheck %s19 20## Test in cwd, with .exe suffix21# RUN: cd "%t.dir" && %lldb testmain.exe -b | FileCheck %s22 23## Test in cwd, without .exe suffix24# RUN: cd "%t.dir" && %lldb testmain -b | FileCheck %s25 26# CHECK-LABEL: target create27# CHECK-NEXT: Current executable set to '{{.*[/\\]}}testmain.exe'28# CHECK-NOT: Error29