Skip to content

Commit fb98269

Browse files
committed
fix test
1 parent 4920313 commit fb98269

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/test_other.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3938,14 +3938,14 @@ def test_file_packager_standalone_modularize(self):
39383938
MESSAGE = 'Remember to build the main file with `-sFORCE_FILESYSTEM` so that it includes support for loading this file package'
39393939

39403940
create_file('data.txt', 'hello data')
3941-
err = self.run_process([FILE_PACKAGER, 'test.data', '--modularize', '--preload', 'data.txt', '--js-output=dataFileLoader.mjs'], stderr=PIPE).stderr
3941+
err = self.run_process([FILE_PACKAGER, 'test.data', '--modularize', '--preload', 'data.txt', '--js-output=dataFileLoader.js'], stderr=PIPE).stderr
39423942
self.assertContained(MESSAGE, err)
39433943

3944-
create_file('test.cpp', '''
3944+
create_file('test.c', '''
39453945
#include <stdio.h>
3946-
#include <emscripten/bind.h>
3946+
#include <emscripten.h>
39473947

3948-
int EMSCRIPTEN_KEEPALIVE test_fun() {
3948+
EMSCRIPTEN_KEEPALIVE int test_fun() {
39493949
FILE* f = fopen("data.txt", "r");
39503950
char buf[64];
39513951
int rtn = fread(buf, 1, 64, f);
@@ -3955,11 +3955,11 @@ def test_file_packager_standalone_modularize(self):
39553955
return 0;
39563956
}
39573957
''')
3958-
self.run_process([EMCC, 'test.cpp', '-sFORCE_FILESYSTEM', '-sMODULARIZE', '-sEXPORT_ES6', '-o', 'moduleFile.mjs'])
3958+
self.run_process([EMCC, 'test.c', '-sFORCE_FILESYSTEM', '-sMODULARIZE', '-sEXPORT_ES6', '-o', 'moduleFile.js'])
39593959

39603960
create_file('run.js', '''
3961-
import loadDataFile from 'dataFileLoader.mjs'
3962-
import {default as loadModule} from 'moduleFile.mjs'
3961+
import loadDataFile from './dataFileLoader.js'
3962+
import {default as loadModule} from './moduleFile.js'
39633963

39643964
var module = loadModule();
39653965
module.then((mod) => {

0 commit comments

Comments
 (0)