[Lldb-commits] [lldb] r199623 - Relax alias test for failing command
    Ed Maste 
    emaste at freebsd.org
       
    Sun Jan 19 19:45:48 PST 2014
    
    
  
Author: emaste
Date: Sun Jan 19 21:45:47 2014
New Revision: 199623
URL: http://llvm.org/viewvc/llvm-project?rev=199623&view=rev
Log:
Relax alias test for failing command
The alias test "exprf x 1234" expands to "expr -f x 1234" and is
expected to fail: it ends up trying to evaluate the invalid expression
    void
    $__lldb_expr(void *$__lldb_arg)
    {
        -f x 1234;
    }
On FreeBSD LLDB ends up finding a static function f() in a math library,
and thus the error produced does not include "use of undeclared
identifier 'f'".
We will report failure to parse the expression in any case, so require
only that error message.
Modified:
    lldb/trunk/test/functionalities/alias/TestAliases.py
Modified: lldb/trunk/test/functionalities/alias/TestAliases.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/alias/TestAliases.py?rev=199623&r1=199622&r2=199623&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/alias/TestAliases.py (original)
+++ lldb/trunk/test/functionalities/alias/TestAliases.py Sun Jan 19 21:45:47 2014
@@ -156,8 +156,7 @@ class AliasTestCase(TestBase):
 
         self.expect ("exprf x 1234",
                      COMMAND_FAILED_AS_EXPECTED, error = True,
-                     substrs = [ "use of undeclared identifier 'f'",
-                                 "1 errors parsing expression" ])
+                     substrs = [ "1 errors parsing expression" ])
 
 if __name__ == '__main__':
     import atexit
    
    
More information about the lldb-commits
mailing list