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 doesn't wait for async process #159

Open
juergenhoetzel opened this issue Feb 12, 2018 · 1 comment
Open

file-test doesn't wait for async process #159

juergenhoetzel opened this issue Feb 12, 2018 · 1 comment

Comments

@juergenhoetzel
Copy link
Contributor

I had a hard time writing a failing test using the with-cpp-file macro: It always succeeded because @body is evaluated using an async callback (while Emacs already exited).

I added

(while (get-process "cmake")
    (sleep-for 0.1))

after the with-cpp-file usage. Now the callback for test-one-cpp-fileis evaluated, but fails:

    (ert-test-failed
     ((should
       (equal-lists ac-clang-flags
		    (list "-DDAS_DEF" ... "-Wall" "-Wextra" "-o" "CMakeFiles/app.dir/foo.cpp.o")))
      :form
      (equal-lists nil
		   ("-DDAS_DEF" "-I/home/juergen/elisp/cmake-ide/test/sandbox/leincludes" "-Wall" "-Wextra" "-o" "CMakeFiles/app.dir/foo.cpp.o"))
      :value nil))

F
@atilaneves
Copy link
Owner

Thanks for writing up the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants