emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] scratch/merge-cedet-tests 404d4da 242/316: Improve compila


From: Edward John Steere
Subject: [Emacs-diffs] scratch/merge-cedet-tests 404d4da 242/316: Improve compilation active detection
Date: Sat, 28 Jan 2017 09:10:07 +0000 (UTC)

branch: scratch/merge-cedet-tests
commit 404d4da32624d758beb2ab164804efbd22a242ab
Author: zappo <address@hidden>
Commit: Edward John Steere <address@hidden>

    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.
---
 test/manual/cedet/cit-cpp.el |   19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/test/manual/cedet/cit-cpp.el b/test/manual/cedet/cit-cpp.el
index 1ab5bff..0d8b537 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 <address@hidden>
-;; 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)
     ))



reply via email to

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