Skip to content

Commit c9d568a

Browse files
authored
Fix test_poppler in the face of llvm change (#20758)
This should unblock the llvm roller. See #20757
1 parent faf6d31 commit c9d568a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/test_core.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7089,6 +7089,8 @@ def test_bullet(self, use_cmake):
70897089
@no_wasm64('MEMORY64 does not yet support SJLJ')
70907090
@is_slow_test
70917091
def test_poppler(self):
7092+
# See https://github.com/emscripten-core/emscripten/issues/20757
7093+
self.emcc_args.append('-Wno-deprecated-declarations')
70927094
poppler = self.get_poppler_library()
70937095
pdf_data = read_binary(test_file('poppler/paper.pdf'))
70947096
create_file('paper.pdf.js', str(list(bytearray(pdf_data))))
@@ -7647,6 +7649,9 @@ def test2():
76477649
})
76487650
def test_embind(self, args):
76497651
self.maybe_closure()
7652+
# This test explicitly creates std::string from unsigned char pointers
7653+
# which is deprecated in upstream LLVM.
7654+
self.emcc_args.append('-Wno-deprecated-declarations')
76507655
create_file('test_embind.cpp', r'''
76517656
#include <stdio.h>
76527657
#include <emscripten/val.h>

0 commit comments

Comments
 (0)