<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/153461>153461</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-repl] Issue to track the failing and crashing tests for Emscripten build of ClangReplInterpreterTests
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
mcbarton
</td>
</tr>
</table>
<pre>
The following tests fail/fail+crash gtest when doing an Emscripten build of ClangReplInterpreterTests, and running the tests in node (after the changes made in https://github.com/llvm/llvm-project/pull/150977). Before this PR almost the only test which would run is IncrementalCompilerBuilder.SetTargetTriple and it failed.
- IncrementalCompilerBuilder.SetTargetTriple
```
[ RUN ] IncrementalCompilerBuilder.SetTargetTriple
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/IncrementalCompilerBuilderTest.cpp:43: Failure
Expected equality of these values:
CI->getTargetOpts().Triple
Which is: "wasm32-unknown-emscripten"
"armv6-unknown-none-eabi"
[ FAILED ] IncrementalCompilerBuilder.SetTargetTriple (1 ms)
```
- InterpreterTest.UndoCommand
```
[ RUN ] InterpreterTest.UndoCommand
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:175: Failure
Value of: Err5
Actual: true
Expected: false
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:177: Failure
Value of: !!Err6
Actual: false
Expected: true
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:181: Failure
Value of: Err8
Actual: true
Expected: false
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:192: Failure
Value of: Err12
Actual: true
Expected: false
[ FAILED ] InterpreterTest.UndoCommand (15 ms)
```
- InterpreterTest.Value (fails and gtest stalls)
```
[ RUN ] InterpreterTest.Value
Could not load dynamic lib: incr_module_26.wasm
TypeError: resolved is not a function
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:310: Failure
Value of: V1.isValid()
Actual: false
Expected: true
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:311: Failure
Value of: V1.hasValue()
Actual: false
Expected: true
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:312: Failure
Expected equality of these values:
V1.getInt()
Which is: 41470496
42
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:313: Failure
Expected equality of these values:
V1.convertTo<int>()
Which is: 0
42
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:314: Failure
Value of: V1.getType()->isIntegerType()
Actual: false
Expected: true
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:315: Failure
Expected equality of these values:
V1.getKind()
Which is: 18
Value::K_Int
Which is: 7
Could not load dynamic lib: incr_module_28.wasm
TypeError: resolved is not a function
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:322: Failure
Value of: V1b.getKind() == Value::K_Char_S || V1b.getKind() == Value::K_Char_U
Actual: false
Expected: true
Could not load dynamic lib: incr_module_30.wasm
TypeError: resolved is not a function
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:327: Failure
Value of: V2.isValid()
Actual: false
Expected: true
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:328: Failure
Value of: V2.hasValue()
Actual: false
Expected: true
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:329: Failure
Expected equality of these values:
V2.getDouble()
Which is: 1.0609980061533408e-314
3.14
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:330: Failure
Expected equality of these values:
V2.convertTo<double>()
Which is: 0
3.14
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:331: Failure
Value of: V2.getType()->isFloatingType()
Actual: false
Expected: true
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:332: Failure
Expected equality of these values:
V2.getKind()
Which is: 18
Value::K_Double
Which is: 14
Could not load dynamic lib: incr_module_32.wasm
TypeError: resolved is not a function
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:339: Failure
Value of: V3.isValid()
Actual: false
Expected: true
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:340: Failure
Value of: V3.hasValue()
Actual: false
Expected: true
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:341: Failure
Value of: V3.getType()->isRecordType()
Actual: false
Expected: true
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:342: Failure
Expected equality of these values:
V3.getKind()
Which is: 18
Value::K_PtrOrObj
Which is: 17
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:343: Failure
Value of: V3.isManuallyAlloc()
Actual: false
Expected: true
Could not load dynamic lib: incr_module_35.wasm
TypeError: resolved is not a function
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:349: Failure
Expected equality of these values:
V4.getInt()
Which is: -2147483520
42
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:350: Failure
Value of: V4.getType()->isIntegerType()
Actual: false
Expected: true
Could not load dynamic lib: incr_module_36.wasm
TypeError: resolved is not a function
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:356: Failure
Expected equality of these values:
V5.getInt()
Which is: -2147483504
43
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:357: Failure
Value of: V5.getType()->isIntegerType()
Actual: false
Expected: true
Could not load dynamic lib: incr_module_37.wasm
TypeError: resolved is not a function
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:361: Failure
Expected equality of these values:
getGlobal()
Which is: 43
44
Could not load dynamic lib: incr_module_39.wasm
TypeError: resolved is not a function
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:366: Failure
Value of: V6.isValid()
Actual: false
Expected: true
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:368: Failure
Value of: V6.getType()->isVoidType()
Actual: false
Expected: true
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:369: Failure
Expected equality of these values:
V6.getKind()
Which is: 18
Value::K_Void
Which is: 16
Could not load dynamic lib: incr_module_40.wasm
TypeError: resolved is not a function
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:374: Failure
Value of: V7.isValid()
Actual: false
Expected: true
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:375: Failure
Value of: V7.hasValue()
Actual: false
Expected: true
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:376: Failure
Value of: V7.getType()->isFunctionProtoType()
Actual: false
Expected: true
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:377: Failure
Expected equality of these values:
V7.getKind()
Which is: 18
Value::K_PtrOrObj
Which is: 17
Could not load dynamic lib: incr_module_42.wasm
TypeError: resolved is not a function
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:383: Failure
Value of: V8.isValid()
Actual: false
Expected: true
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:384: Failure
Value of: V8.hasValue()
Actual: false
Expected: true
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:385: Failure
Value of: V8.getType()->isMemberFunctionPointerType()
Actual: false
Expected: true
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:386: Failure
Expected equality of these values:
V8.getKind()
Which is: 18
Value::K_PtrOrObj
Which is: 17
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:387: Failure
Value of: V8.isManuallyAlloc()
Actual: false
Expected: true
Could not load dynamic lib: incr_module_46.wasm
TypeError: resolved is not a function
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:395: Failure
Value of: V9.isValid()
Actual: false
Expected: true
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:396: Failure
Value of: V9.hasValue()
Actual: false
Expected: true
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:397: Failure
Value of: V9.getType()->isMemberFunctionPointerType()
Actual: false
Expected: true
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:398: Failure
Expected equality of these values:
V9.getKind()
Which is: 18
Value::K_PtrOrObj
Which is: 17
/Users/username/Documents/GitHub/llvm-project/clang/unittests/Interpreter/InterpreterTest.cpp:399: Failure
Value of: V9.isManuallyAlloc()
Actual: false
Expected: true
Could not load dynamic lib: incr_module_47.wasm
TypeError: resolved is not a function
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzcW11z4ygW_TX4hbJKAvT14AfHH7Op2dnuyiTexxSSsM0MAi-gZPPvt0BOJknb6kg73W51V1e5IiPEueeecwELagzfScZmIL4C8XJCG7tXelaXBdVWyUmhqqfZ7Z7BrRJCPXK5g5YZa-CWcgHQuv24KjU1e7hzX8HHPZOwUq4plXBVm1Lzg2USFg0XFVRbuBBU7m7YQVxLy_RBM8v0resVoAWksoK6kdI_as-Oj-MSSlUxCFBGt5Zp_1W5p3LHDKxpxVyLvbUHA_AcoDVA6x23-6YISlUDtBbi4fljetDqD1ZagNaHRjgQURzmaQpQHsArtlWaQbvnBn6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