aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/disable-experimental-non-null.patch
blob: 69698d37ac56f71cc9ec92522279f405837b0b6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -4,8 +4,7 @@
 
 AM_CFLAGS = -w
 AM_LDFLAGS = -lm
-AM_VALAFLAGS = --enable-experimental-non-null   \
-               --metadatadir $(top_srcdir)/deps \
+AM_VALAFLAGS = --metadatadir $(top_srcdir)/deps \
                --vapidir $(top_srcdir)/deps
 
 indicator_keyboard_test_SOURCES = main.vala   \
--- a/tests/main.vala
+++ b/tests/main.vala
@@ -146,7 +146,7 @@
 	action_group.disconnect (signal_name);
 
 	var state = action_group.get_action_state ("current");
-	var current = ((!) state).get_uint32 ();
+	var current = state.get_uint32 ();
 	assert (current == 2);
 
 	try {
@@ -410,7 +410,7 @@
 	action_group.disconnect (signal_name);
 
 	var state = action_group.get_action_state ("indicator");
-	assert (((!) state).lookup ("visible", "b", out visible));
+	assert (state.lookup ("visible", "b", out visible));
 	assert (visible);
 
 	loop = new MainLoop (null, false);
@@ -433,7 +433,7 @@
 	action_group.disconnect (signal_name);
 
 	state = action_group.get_action_state ("indicator");
-	assert (((!) state).lookup ("visible", "b", out visible));
+	assert (state.lookup ("visible", "b", out visible));
 	assert (!visible);
 
 	loop = new MainLoop (null, false);
@@ -456,7 +456,7 @@
 	action_group.disconnect (signal_name);
 
 	state = action_group.get_action_state ("indicator");
-	assert (((!) state).lookup ("visible", "b", out visible));
+	assert (state.lookup ("visible", "b", out visible));
 	assert (visible);
 }
 
@@ -505,7 +505,7 @@
 	action_group.disconnect (signal_name);
 
 	var state = action_group.get_action_state ("current");
-	var current = ((!) state).get_uint32 ();
+	var current = state.get_uint32 ();
 	assert (current == 1);
 
 	try {
@@ -538,7 +538,7 @@
 	action_group.disconnect (signal_name);
 
 	state = action_group.get_action_state ("current");
-	current = ((!) state).get_uint32 ();
+	current = state.get_uint32 ();
 	assert (current == 0);
 
 	try {