11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ci 31cb0ef41Sopenharmony_ci// This test verifies that C++ static variable dynamic initialization is called 41cb0ef41Sopenharmony_ci// correctly and does not interfere with the module initialization. 51cb0ef41Sopenharmony_ciconst common = require('../../common'); 61cb0ef41Sopenharmony_ciconst test_init_order = require(`./build/${common.buildType}/test_init_order`); 71cb0ef41Sopenharmony_ciconst assert = require('assert'); 81cb0ef41Sopenharmony_ci 91cb0ef41Sopenharmony_ciassert.strictEqual(test_init_order.cppIntValue, 42); 101cb0ef41Sopenharmony_ciassert.strictEqual(test_init_order.cppStringValue, '123'); 11