NetBSD-Bugs archive

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

bin/48537: [PATCH] add FreeBSD support to tests/bin/expr/t_expr.sh



>Number:         48537
>Category:       bin
>Synopsis:       [PATCH] add FreeBSD support to tests/bin/expr/t_expr.sh
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 20 20:45:00 +0000 2014
>Originator:     Garrett Cooper
>Release:        n/a
>Organization:
n/a
>Environment:
n/a
>Description:
The attached patch adds FreeBSD support to bin/expr/t_expr.sh. I had to do some 
minor refactoring to support the fact that expr on FreeBSD...
- Does option parsing
- Has different error messages when dealing with integer overflows
- Always fails with syntax errors when dealing with dangling arithmetic 
operators (and thus I had to split off the arithmetic_ops testcase into 6 
separate testcases in order to properly use atf_expect_fail).

The results can be found below for FreeBSD 11-CURRENT:

# kyua report
===> Expected failures
t_expr:arithmetic_ops01  ->  expected_failure: Results in a syntax errors on 
FreeBSD: Expected '0', got 'expr: syntax error' from expression:  -- 
.java_wrapper : /  [0.025s]
t_expr:arithmetic_ops02  ->  expected_failure: Results in a syntax errors on 
FreeBSD: Expected '0', got 'expr: syntax error' from expression:  -- 4 : *  
[0.029s]
t_expr:arithmetic_ops03  ->  expected_failure: Results in a syntax errors on 
FreeBSD: Expected '0', got 'expr: syntax error' from expression:  -- 4 : +  
[0.045s]
t_expr:arithmetic_ops04  ->  expected_failure: Results in a syntax errors on 
FreeBSD: Expected '0', got 'expr: syntax error' from expression:  -- 4 : -  
[0.030s]
t_expr:arithmetic_ops05  ->  expected_failure: Results in a syntax errors on 
FreeBSD: Expected '0', got 'expr: syntax error' from expression:  -- 4 : /  
[0.027s]
t_expr:arithmetic_ops06  ->  expected_failure: Results in a syntax errors on 
FreeBSD: Expected '0', got 'expr: syntax error' from expression:  -- 4 : %  
[0.032s]
===> Summary
Action: 59
Test cases: 19 total, 0 skipped, 6 expected failures, 0 broken, 0 failed
Total time: 0.623s
>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index