Skip to content

paddle::platform::EnforceNotMet Exception bug in unit test op_registry_test #3613

@gangliao

Description

@gangliao
[13:24:21]	92/140 Test #96: op_registry_test ....................***Failed 0.20 sec
[13:24:21]	Running main() from gtest_main.cc
[13:24:21]	[==========] Running 6 tests from 2 test cases.
[13:24:21]	[----------] Global test environment set-up.
[13:24:21]	[----------] 4 tests from OpRegistry
[13:24:21]	[ RUN ] OpRegistry.CreateOp
[13:24:21]	[ OK ] OpRegistry.CreateOp (0 ms)
[13:24:21]	[ RUN ] OpRegistry.IllegalAttr
[13:24:21]	[ OK ] OpRegistry.IllegalAttr (5 ms)
[13:24:21]	[ RUN ] OpRegistry.DefaultValue
[13:24:21]	[ OK ] OpRegistry.DefaultValue (0 ms)
[13:24:21]	[ RUN ] OpRegistry.CustomChecker
[13:24:21]	[ OK ] OpRegistry.CustomChecker (8 ms)
[13:24:21]	[----------] 4 tests from OpRegistry (13 ms total)
[13:24:21]	
[13:24:21]	[----------] 2 tests from ProtoMaker
[13:24:21]	[ RUN ] ProtoMaker.DuplicatedAttr
[13:24:21]	/paddle/paddle/framework/op_registry_test.cc:192: Failure
[13:24:21]	Expected: proto_maker.Validate() throws an exception of type paddle::platform::EnforceNotMet.
[13:24:21]	Actual: it throws a different type.
[13:24:21]	[ FAILED ] ProtoMaker.DuplicatedAttr (2 ms)
[13:24:21]	[ RUN ] ProtoMaker.DuplicatedInOut
[13:24:21]	/paddle/paddle/framework/op_registry_test.cc:208: Failure
[13:24:21]	Expected: proto_maker.Validate() throws an exception of type paddle::platform::EnforceNotMet.
[13:24:21]	Actual: it throws a different type.
[13:24:21]	[ FAILED ] ProtoMaker.DuplicatedInOut (2 ms)
[13:24:21]	[----------] 2 tests from ProtoMaker (4 ms total)
[13:24:21]	
[13:24:21]	[----------] Global test environment tear-down

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions