equal
deleted
inserted
replaced
|
1 # Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 # All rights reserved. |
|
3 # This component and the accompanying materials are made available |
|
4 # under the terms of the License "Eclipse Public License v1.0" |
|
5 # which accompanies this distribution, and is available |
|
6 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 # |
|
8 # Initial Contributors: |
|
9 # Nokia Corporation - initial contribution. |
|
10 # |
|
11 # Contributors: |
|
12 # |
|
13 # Description: |
|
14 # |
|
15 |
|
16 init() |
|
17 { |
|
18 let totalno=0; |
|
19 let passno=0; |
|
20 let failno=0; |
|
21 } |
|
22 |
|
23 |
|
24 test_unsetopt2() |
|
25 { |
|
26 let totalno=totalno+1 |
|
27 echo "Test $totalno: unsetopt interactive" |
|
28 unsetopt ineractive |
|
29 ret=$? |
|
30 if [ $ret = 0 ] |
|
31 then |
|
32 { |
|
33 echo "PASS" |
|
34 let passno=passno+1 |
|
35 } |
|
36 else |
|
37 { |
|
38 echo "FAIL: Expected 0, returned $ret" |
|
39 let failno=failno+1 |
|
40 } |
|
41 fi |
|
42 } |
|
43 report() |
|
44 { |
|
45 echo "#############################################################################" |
|
46 echo "Total tests : $totalno" |
|
47 echo "Passed : $passno" |
|
48 echo "Failed : $failno" |
|
49 echo "#############################################################################" |
|
50 } |
|
51 |
|
52 init |
|
53 test_unsetopt2 |
|
54 report |