Files
clang-p2996/lldb/test/process_launch/print_cwd.cpp
Johnny Chen 90eb2cbaee Add a test case to exercise the process launch flag of '-w <path>' which sets the
current working directory when running the inferior.  Radar filed:

    # rdar://problem/9056462
    # The process launch flag '-w' for setting the current working directory not working?

llvm-svn: 126529
2011-02-25 23:15:09 +00:00

14 lines
226 B
C++

#include <stdio.h>
#include <unistd.h>
int
main (int argc, char **argv)
{
char buffer[1024];
fprintf(stdout, "stdout: %s\n", getcwd(buffer, 1024));
fprintf(stderr, "stderr: %s\n", getcwd(buffer, 1024));
return 0;
}