Skip to content

Commit 0437f88

Browse files
committed
Address review comments
1 parent e5b1ea7 commit 0437f88

3 files changed

Lines changed: 9 additions & 10 deletions

File tree

tests/Main.vala

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,4 @@ namespace Gala {
4343
Test.init (ref args);
4444
return Test.run ();
4545
}
46-
47-
public void assert_finalize_object<G> (ref G data) {
48-
unowned var weak_pointer = data;
49-
((Object) data).add_weak_pointer (&weak_pointer);
50-
data = null;
51-
assert_null (weak_pointer);
52-
}
5346
}

tests/TestCase.vala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,11 @@ public abstract class Gala.TestCase : Object {
3838

3939
public virtual void tear_down () {
4040
}
41+
42+
public void assert_finalize_object<G> (ref G data) {
43+
unowned var weak_pointer = data;
44+
((Object) data).add_weak_pointer (&weak_pointer);
45+
data = null;
46+
assert_null (weak_pointer);
47+
}
4148
}

tests/meson.build

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ lib_tests = [
1313

1414
lib_test_sources = files()
1515
foreach lib_test : lib_tests
16-
lib_test_sources += files('lib/@0@.vala'.format(lib_test))
16+
lib_test_sources += 'lib' / '@0@.vala'.format(lib_test)
1717
endforeach
1818

1919
test_executable = executable(
@@ -25,8 +25,7 @@ test_executable = executable(
2525
install: false,
2626
)
2727

28-
lib_test_sources = files()
2928
foreach lib_test : lib_tests
30-
test(lib_test, test_executable, args: ['--test-name=@0@'.format(lib_test)] ,is_parallel: false)
29+
test(lib_test, test_executable, args: ['--test-name=@0@'.format(lib_test)], suite: ['Gala'], is_parallel: false)
3130
endforeach
3231

0 commit comments

Comments
 (0)