Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 31434 invoked from network); 1 Jul 2009 08:27:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Jul 2009 08:27:52 -0000 Received: (qmail 53547 invoked by uid 500); 1 Jul 2009 08:28:02 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 53476 invoked by uid 500); 1 Jul 2009 08:28:02 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 53467 invoked by uid 99); 1 Jul 2009 08:28:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 08:28:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 08:27:59 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 1F91023888E3; Wed, 1 Jul 2009 08:27:38 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r790064 - in /commons/sandbox/runtime/trunk/src: main/native/test/testcase.c test/org/apache/commons/runtime/TestPrivate.java Date: Wed, 01 Jul 2009 08:27:38 -0000 To: commits@commons.apache.org From: mturk@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090701082738.1F91023888E3@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mturk Date: Wed Jul 1 08:27:37 2009 New Revision: 790064 URL: http://svn.apache.org/viewvc?rev=790064&view=rev Log: Actually add the strtok test case Modified: commons/sandbox/runtime/trunk/src/main/native/test/testcase.c commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java Modified: commons/sandbox/runtime/trunk/src/main/native/test/testcase.c URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/test/testcase.c?rev=790064&r1=790063&r2=790064&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/main/native/test/testcase.c (original) +++ commons/sandbox/runtime/trunk/src/main/native/test/testcase.c Wed Jul 1 08:27:37 2009 @@ -355,6 +355,7 @@ char *token; char *state; + sprintf(buf, " 1 22 3333 4"); token = ACR_strtok_c(buf, ' ', &state); if (token) { n++; Modified: commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java?rev=790064&r1=790063&r2=790064&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java (original) +++ commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java Wed Jul 1 08:27:37 2009 @@ -82,6 +82,7 @@ private static native void test030(int d); private static native String[] test031(String s); private static native String[] test032(String s); + private static native int test033(int d); private static native String test100(String s); @@ -619,6 +620,12 @@ assertEquals("Length", 3, a.length); } + public void testTokens() + throws Throwable + { + assertEquals("Tokens", 4, test033(0)); + } + public void testModuleSSL() throws Throwable {