summaryrefslogtreecommitdiff
path: root/jstests/core
diff options
context:
space:
mode:
authorMatt Broadstone <mbroadst@mongodb.com>2023-05-10 15:13:57 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-12 22:27:11 +0000
commit5bf3d7813c32b6a1cdc511d88f5ac4513f9b3478 (patch)
treeff955a2cf0389ed5d53737e696ea807820d08e17 /jstests/core
parenteb05490c36d7d21ccb142984b6d83c6f30146ae6 (diff)
downloadmongo-5bf3d7813c32b6a1cdc511d88f5ac4513f9b3478.tar.gz
SERVER-76993 Use dynamic import for SELinux jscore test runner
Diffstat (limited to 'jstests/core')
-rw-r--r--jstests/core/json1.js1
-rw-r--r--jstests/core/loadserverscripts.js3
2 files changed, 4 insertions, 0 deletions
diff --git a/jstests/core/json1.js b/jstests/core/json1.js
index fdcea151e05..4f026e7ba32 100644
--- a/jstests/core/json1.js
+++ b/jstests/core/json1.js
@@ -1,5 +1,6 @@
let x = {quotes: "a\"b", nulls: null};
+let y;
eval("y = " + tojson(x));
assert.eq(tojson(x), tojson(y), "A");
assert.eq(typeof (x.nulls), typeof (y.nulls), "B");
diff --git a/jstests/core/loadserverscripts.js b/jstests/core/loadserverscripts.js
index db2e15fb05b..4dfed2188ff 100644
--- a/jstests/core/loadserverscripts.js
+++ b/jstests/core/loadserverscripts.js
@@ -5,6 +5,9 @@
// uses_parallel_shell,
// # This test has statements that do not support non-local read concern.
// does_not_support_causal_consistency,
+// # DB.prototype.loadServerScripts does not behave as expected in module mode, and the SELinux
+// # test runner loads scripts with dynamic load.
+// no_selinux
// ]
// Test db.loadServerScripts()