Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file test failure on freebsd10 #8078

Closed
nolta opened this issue Aug 21, 2014 · 4 comments · Fixed by #20674
Closed

file test failure on freebsd10 #8078

nolta opened this issue Aug 21, 2014 · 4 comments · Fixed by #20674
Labels
system:freebsd Affects only FreeBSD

Comments

@nolta
Copy link
Member

nolta commented Aug 21, 2014

$ gmake test-file
    �JULIA� �test/file�
exception on 1: ERROR: test failed: fname == basename(file)
 in error at error.jl:21
 in default_handler at test.jl:19
 in do_test at test.jl:39
 in test_monitor_wait at file.jl:149
 in runtests at /usr/home/nolta/julia/test/testdefs.jl:5
 in anonymous at multi.jl:660
 in run_work_thunk at multi.jl:621
 in remotecall_fetch at multi.jl:694
 in remotecall_fetch at multi.jl:709
 in anonymous at task.jl:1365
while loading file.jl, in expression starting on line 161
ERROR: test failed: fname == basename(file)
 in error at error.jl:21
 in default_handler at test.jl:19
 in do_test at test.jl:39
 in test_monitor_wait at file.jl:149
 in runtests at /usr/home/nolta/julia/test/testdefs.jl:5
 in anonymous at multi.jl:660
 in run_work_thunk at multi.jl:621
 in remotecall_fetch at multi.jl:694
 in remotecall_fetch at multi.jl:709
 in anonymous at task.jl:1365
while loading file.jl, in expression starting on line 161
while loading /usr/home/nolta/julia/test/runtests.jl, in expression starting on line 35
     �*� �file�

gmake[1]: *** [file] Error 1
gmake: *** [test-file] Error 2
@nolta nolta added the freebsd label Aug 21, 2014
@staticfloat
Copy link
Member

Could you perhaps change the tests to output the values of the variables being tested for equality? Perhaps basename has some subtlety in FreeBSD that we're not used to.

@nolta
Copy link
Member Author

nolta commented Sep 14, 2014

It might be a libuv issue -- _uv_hook_fseventscb is passed filename = C_NULL.

@kassandry
Copy link

I also get this issue on FreeBSD 10.2. Build works fine, but the tests fail on the file test, because there isn't a filename returned.

ERROR: LoadError: On worker 6:
LoadError: test failed: "" == "bfile.txt"
 in expression: fname == basename(file)
 in error at ./error.jl:21
 in default_handler at test.jl:30
 in do_test at test.jl:53
 in test_monitor_wait at /home/lacey/personal/programming/repositories/julia/test/file.jl:148
 in include_string at loading.jl:266
 in include_from_node1 at ./loading.jl:307
 [inlined code] from util.jl:179
 in runtests at /home/lacey/personal/programming/repositories/julia/test/testdefs.jl:178
 in anonymous at multi.jl:892
 in run_work_thunk at multi.jl:645
 [inlined code] from multi.jl:892
 in anonymous at task.jl:63
while loading /home/lacey/personal/programming/repositories/julia/test/file.jl, in expression starting on line 167
while loading /home/lacey/personal/programming/repositories/julia/usr/share/julia/test/runtests.jl, in expression starting on line 13
    From worker 6:       * file                     From worker 2:       * mmap                 ERROR: A test has failed. Please submit a bug report (https://github.com/JuliaLang/julia/issues)
including error messages above and the output of versioninfo():
Julia Version 0.4.0
Commit 0ff703b* (2015-10-08 06:20 UTC)
Platform Info:
  System: FreeBSD (x86_64-portbld-freebsd10.1)
  CPU: Intel(R) Xeon(R) CPU E5-1650 v2 @ 3.50GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

 in error at ./error.jl:21
 in runtests at interactiveutil.jl:406
 in runtests at interactiveutil.jl:395

julia>

@iblislin iblislin mentioned this issue Feb 13, 2017
@iblislin
Copy link
Member

I trace the code on libuv: https://github.com/libuv/libuv/blob/309d603382159eacdf52cbf0fa936deb60552d32/src/unix/kqueue.c#L353-L361
And the F_GETPATH is not available on FreeBSD, so the value NULL for path is sane on FreeBSD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
system:freebsd Affects only FreeBSD
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants