[gjs] tests: Suppress message about too-big integer
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] tests: Suppress message about too-big integer
- Date: Fri, 1 Sep 2017 00:10:43 +0000 (UTC)
commit c43fac7c5dd9ae7627ef5cbd322bafdad0a74a65
Author: Philip Chimento <philip endlessm com>
Date: Thu Aug 31 15:06:45 2017 -0700
tests: Suppress message about too-big integer
In case of running the tests with fatal criticals, this should not abort
the test, because it's expected.
https://bugzilla.gnome.org/show_bug.cgi?id=786995
installed-tests/js/testEverythingBasic.js | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/installed-tests/js/testEverythingBasic.js b/installed-tests/js/testEverythingBasic.js
index 3b19845..ad6dd26 100644
--- a/installed-tests/js/testEverythingBasic.js
+++ b/installed-tests/js/testEverythingBasic.js
@@ -85,8 +85,17 @@ describe('Life, the Universe and Everything', function () {
function run_test(bytes, limit, method_stem) {
if(skip[limit + bytes])
pending("This test doesn't work");
+
+ if (bytes === '64')
+ GLib.test_expect_message('Gjs', GLib.LogLevelFlags.LEVEL_WARNING,
+ "*cannot be safely stored*");
+
let val = Limits[bytes][limit];
expect(Regress[method_stem + bytes](val)).toBe(val);
+
+ if (bytes === '64')
+ GLib.test_assert_expected_messages_internal('Gjs',
+ 'testEverythingBasic.js', 0, 'Ignore message');
}
['8', '16', '32', '64'].forEach(bytes => {
it('marshals max value of unsigned ' + bytes + '-bit integers', function () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]