bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug crypto/28192] Algorithm names should be case insensitive


From: raif at swiftdsl dot com dot au
Subject: [Bug crypto/28192] Algorithm names should be case insensitive
Date: 30 Jul 2006 03:31:55 -0000


------- Comment #6 from raif at swiftdsl dot com dot au  2006-07-30 03:31 
-------
i reverted the patch and ran the getInstance testlet, to which i added more
tests to highlight the usefulness of the canonical name transformation which
was there already.  the test passes as follows:

TEST: java.security.Engine.getInstance
  pass:  line 77: getInstance("MessageDigest", "foo", provider) [1]
  pass:  line 90: getInstance("  MessageDigest  ", "foo", provider) [1]
  pass:  line 103: getInstance("MessageDigest", "  foo  ", provider) [1]
  pass:  line 116: getInstance("  MessageDigest  ", "  foo  ", provider) [1]
  pass:  line 303: MUST find foo [1]
  pass:  line 303: MUST find FOO [1]
*** Added 'Foo'
  pass:  line 303: MUST find Foo [1]
*** Removed 'foo'
  pass:  line 322: MUST NOT find foo [1]
  pass:  line 322: MUST NOT find FOO [1]
  pass:  line 322: MUST NOT find Foo [1]
*** Re-added 'foo'
*** Added alias 'Bar'
  pass:  line 303: MUST find bar [1]
  pass:  line 303: MUST find BAR [1]
  pass:  line 303: MUST find Bar [1]
*** Removed alias 'bar'
  pass:  line 322: MUST NOT find bar [1]
  pass:  line 322: MUST NOT find BAR [1]
  pass:  line 322: MUST NOT find Bar [1]
TEST PASSED (16 checks) java.security.Engine.getInstance

TEST RESULTS:
0 of 1 tests failed.  0 total calls to harness.check() failed.


i re-applied the patch (CVS HEAD) and now the test fails as follows:

TEST: java.security.Engine.getInstance
  pass:  line 77: getInstance("MessageDigest", "foo", provider) [1]
  pass:  line 90: getInstance("  MessageDigest  ", "foo", provider) [1]
  pass:  line 103: getInstance("MessageDigest", "  foo  ", provider) [1]
  pass:  line 116: getInstance("  MessageDigest  ", "  foo  ", provider) [1]
  pass:  line 303: MUST find foo [1]
  pass:  line 303: MUST find FOO [1]
*** Added 'Foo'
  pass:  line 303: MUST find Foo [1]
*** Removed 'foo'
  FAIL:  line 318: MUST NOT find foo [1] -- boolean passed to check was false
  FAIL:  line 318: MUST NOT find FOO [1] -- boolean passed to check was false
  FAIL:  line 318: MUST NOT find Foo [1] -- boolean passed to check was false
*** Re-added 'foo'
*** Added alias 'Bar'
  pass:  line 303: MUST find bar [1]
  pass:  line 303: MUST find BAR [1]
  pass:  line 303: MUST find Bar [1]
*** Removed alias 'bar'
  FAIL:  line 318: MUST NOT find bar [1] -- boolean passed to check was false
  FAIL:  line 318: MUST NOT find BAR [1] -- boolean passed to check was false
  FAIL:  line 318: MUST NOT find Bar [1] -- boolean passed to check was false
TEST FAILED: 6 of 16 checks failed java.security.Engine.getInstance

TEST RESULTS:
1 of 1 tests failed.  6 total calls to harness.check() failed.


what am i missing?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28192





reply via email to

[Prev in Thread] Current Thread [Next in Thread]