From: zappo Date: Tue, 16 Mar 2010 03:05:27 +0000 (+0000) Subject: Improve compilation active detection X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=404d4da32624d758beb2ab164804efbd22a242ab;p=emacs.git Improve compilation active detection * test/manual/cedet/cit-cpp.el: (cit-remove-add-to-project-cpp) (cit-remove-and-do-shared-lib): Use cit-wait-for-compilation and cit-check-compilation-for-error. --- diff --git a/test/manual/cedet/cit-cpp.el b/test/manual/cedet/cit-cpp.el index 1ab5bffd29f..0d8b5376c56 100644 --- a/test/manual/cedet/cit-cpp.el +++ b/test/manual/cedet/cit-cpp.el @@ -1,9 +1,9 @@ ;;; cit-cpp.el --- C++ specific things for our integ test. -;; Copyright (C) 2008, 2009 Eric M. Ludlam +;; Copyright (C) 2008, 2009, 2010 Eric M. Ludlam ;; Author: Eric M. Ludlam -;; X-RCS: $Id: cit-cpp.el,v 1.8 2009-10-18 16:16:30 zappo Exp $ +;; X-RCS: $Id: cit-cpp.el,v 1.9 2010-03-16 03:05:27 zappo Exp $ ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU General Public License as @@ -167,10 +167,10 @@ Argument MAKE-TYPE is the type of make project to create." ;; 1 g) build the sources. ;; Direct compile to test that make fails properly. (compile ede-make-command) - ;; @todo - verify make error status - (while compilation-in-progress - (accept-process-output) - (sit-for 1)) + + + (cit-wait-for-compilation) + (cit-check-compilation-for-error t) ;; That should have errored. (let ((p (ede-current-project))) (if (string= make-type "Automake") @@ -198,10 +198,9 @@ Create a new shared lib with bar.cpp in it." ;; 1 g) build the sources. ;; Direct compile to test that make fails properly. (compile ede-make-command) - ;; @todo - verify make error status - (while compilation-in-progress - (accept-process-output) - (sit-for 1)) + + (cit-wait-for-compilation) + (cit-check-compilation-for-error t) ;; that should have errored. (cit-compile-and-wait) ))