summaryrefslogtreecommitdiff
path: root/Tests/TestsWorkingDirectory/main.c
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2011-01-03 08:39:22 -0500
committerBen Boeckel <ben.boeckel@kitware.com>2011-01-03 08:39:22 -0500
commit6529d7f67e05903ca29347c3220a0c91ce1f2905 (patch)
treeb39b5c3b270418bc98adf42af465825553ad6a1e /Tests/TestsWorkingDirectory/main.c
parent96309fc6e2439ede2604fc18ad04e82ffc54b606 (diff)
downloadcmake-6529d7f67e05903ca29347c3220a0c91ce1f2905.tar.gz
Pass the expected value as the first argument
When the path has regular expression special characters, the PASS_REGULAR_EXPRESSION value can fail to compile.
Diffstat (limited to 'Tests/TestsWorkingDirectory/main.c')
-rw-r--r--Tests/TestsWorkingDirectory/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Tests/TestsWorkingDirectory/main.c b/Tests/TestsWorkingDirectory/main.c
index ad5eb30b8a..19f2f14afd 100644
--- a/Tests/TestsWorkingDirectory/main.c
+++ b/Tests/TestsWorkingDirectory/main.c
@@ -60,7 +60,5 @@ int main(int argc, char *argv[])
char buf[2048];
const char *cwd = Getcwd(buf, sizeof(buf));
- fprintf(stdout, "Working directory: -->%s<--", cwd);
-
- return 0;
+ return strcmp(cwd, argv[1]);
}