Skip to content

Commit 81ddba2

Browse files
authored
Build tests/hello_world_file.cpp as part of a test. NFC (#15996)
This file is refernced in the tutorial but nowhere else. Add a test to ensure it continues to be buildable.
1 parent dfb3fe4 commit 81ddba2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tests/hello_world_file.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// found in the LICENSE file.
55

66
#include <stdio.h>
7+
78
int main() {
89
FILE *file = fopen("tests/hello_world_file.txt", "rb");
910
if (!file) {

tests/test_other.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11449,3 +11449,7 @@ def test_llvm_nm_relative_paths_works_with_response_files(self):
1144911449
}
1145011450
''')
1145111451
self.run_process([EMCC, 'main.c', os.path.join('foo', 'foo bar.c')])
11452+
11453+
def test_tutorial(self):
11454+
# Ensure that files referenced in Tutorial.rst are buildable
11455+
self.run_process([EMCC, test_file('hello_world_file.cpp')])

0 commit comments

Comments
 (0)