testngpp单元测试使用mock打桩函数导致用例crash

测试用例的实现:

    TEST(test mocker)
    {
    int ret;
    MOCKER(notexist1).expects(once()).with(spy(ret));
    plat_test1(2,4);
    ASSERT_EQ(4,ret);
}

    被调用函数实现:
    int notexist1(int num){

}

int plat_test1(int num1, int num2){
    int ret2;
    ret2 = notexist1(num2);
    if ( ret2 == num2 ){
        return 0;
    }else{
        return 1;
    }
}

运行测试用例就提示:
[ CRASHED ] TestU.h:96: test crashed unexpectedly.

搞了很多次都这样,实在不知道要怎么办了,求大神指点

notexist1有没有丢出异常?