aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-02-22 17:34:02 +0000
committerYang Tse <yangsita@gmail.com>2007-02-22 17:34:02 +0000
commit141b3d0c2f80af0edf782736d6ff82e51c049a08 (patch)
tree754395a6d36fe743a3052d9b0953c1e4804436d1
parent2a6a22a3b0f01f8b901a6fdc3256b28358eca595 (diff)
remove redundant check in timestamp detection
-rwxr-xr-xtests/testcurl.pl6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/testcurl.pl b/tests/testcurl.pl
index 2dc17cad6..a041f568b 100755
--- a/tests/testcurl.pl
+++ b/tests/testcurl.pl
@@ -401,10 +401,8 @@ if ($CVS) {
}
# Set timestamp to the one in curlver.h if this isn't a CVS test build.
-if ((-f "$CURLDIR/include/curl/curlver.h") &&
- (grepfile("define LIBCURL_TIMESTAMP",
- "$CURLDIR/include/curl/curlver.h")) &&
- (open(F, "<$CURLDIR/include/curl/curlver.h"))) {
+if ((-f "include/curl/curlver.h") &&
+ (open(F, "<include/curl/curlver.h"))) {
while (<F>) {
chomp;
if ($_ =~ /^\#define\s+LIBCURL_TIMESTAMP\s+\"(.+)\".*$/) {