summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2004-05-24 06:06:20 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2004-05-24 06:06:20 +0000
commit8794eb44ae2afc49ef5681e5e0236d87f9715c52 (patch)
tree58e38281df4532730bed9474105a5b5ee817bc5c /test
parent864fedcfd0b0034ff297e165970c80cc6fe30629 (diff)
downloadlibapr-8794eb44ae2afc49ef5681e5e0236d87f9715c52.tar.gz
* test/testlfs.c (PRECOND): Return after ENOTIMPL checks trigger to
prevent spurious test failures since ABTS_NOT_IMPL doesn't longjmp away. (test_open): Only set 'madefile' on success. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65117 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r--test/testlfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testlfs.c b/test/testlfs.c
index 5011cd218..d512558be 100644
--- a/test/testlfs.c
+++ b/test/testlfs.c
@@ -35,7 +35,7 @@ static apr_off_t eightGb = APR_INT64_C(2) << 32;
static int madefile = 0;
-#define PRECOND if (!madefile) ABTS_NOT_IMPL(tc, "Large file tests not enabled")
+#define PRECOND if (!madefile) { ABTS_NOT_IMPL(tc, "Large file tests not enabled"); return; }
#define TESTDIR "lfstests"
#define TESTFILE "large.bin"
@@ -73,7 +73,7 @@ static void test_open(abts_case *tc, void *data)
apr_assert_success(tc, "truncate file to 8gb", rv);
}
- madefile = 1;
+ madefile = rv == APR_SUCCESS;
}
static void test_reopen(abts_case *tc, void *data)