Skip to content

[clang-repl] Issue to track the failing and crashing tests for Emscripten build of ClangReplInterpreterTests #153461

@mcbarton

Description

@mcbarton

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 #150977). Before this PR 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 where I stop the output in the below)
[ 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions