Arrow_left   Arrow_right
 
  #59

Bug in test_java_utils.clj

    • Status: Fixed
    • Priority: Normal (3)
    • Component: -
    • Permission type: Private
    I got test error today (21 Jan 2009, GMT+5:30) on Clojure-contrib 1.1 (maven branch) while running "mvn assembly:assembly" on Windows XP 32-bit on JDK 1.6.0_18.

    <snip>passing tests</snip>

    FAIL in (test-relative-path-string) (run-test503247994263281606.clj:130)
    absolute path strings are forbidden
    expected: (thrown? IllegalArgumentException (relative-path-string "/baz"))
    actual: nil

    FAIL in (test-relative-path-string) (run-test503247994263281606.clj:130)
    absolute File paths are forbidden
    expected: (thrown? IllegalArgumentException (relative-path-string (File. "/quux")))
    actual: nil

    FAIL in (test-file) (run-test503247994263281606.clj:130)
    no sneaking in absolute paths!
    expected: (thrown? IllegalArgumentException (file "foo" "bar" "/boom" "baz" "quux"))
    actual: nil

    FAIL in (test-as-url) (run-test503247994263281606.clj:130)
    expected: (= (URL. "file:/foo") (as-url (File. "/foo")))
    actual: (not (= #<URL file:/foo> #<URL file:/C:/foo>))

    <snip>passing tests</snip>

    4 failures, 0 errors
  • Followers
     
    Ico-users kumarshantanu 
     
    Attachments
    No attachments
    Associations
     
    No associations
    Activity
     
    User picture

          on Jan 30, 2010 @ 10:33PM UTC * By stuartsierra

    Milestone set to Backlog
    Updating tickets (#1, #2, #3, #4, #6, #20, #23, #25, #30, #31, #33, #34, #35, #37, #38, #52, #55, #58, #59, #60, #61, #62, #63, #64)
    User picture

          on Feb 03, 2010 @ 12:05PM UTC * By stuartsierra

    This is probably caused by the way Windows handles paths. Needs a fix for portability.
    User picture

          on Apr 12, 2010 @ 08:41PM UTC * By stuart.halloway

    Status changed from New to Fixed
    Using File/separator should work cross-platform. Added in commit ebf0d212dcc076ebee6984d276ff037ce1a7ecbe.
    User picture

          on Apr 12, 2010 @ 08:44PM UTC * By stuart.halloway

    Milestone changed from Backlog to Release 1.2
    Time Expenditure
    Loading