Changeset 1a3b953 in mainline for uspace/lib/bithenge/expression.c


Ignore:
Timestamp:
2012-08-20T00:22:19Z (12 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0784869
Parents:
5e514c0
Message:

Bithenge: better error injection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/bithenge/expression.c

    r5e514c0 r1a3b953  
    4040#include "blob.h"
    4141#include "expression.h"
     42#include "os.h"
    4243#include "transform.h"
    4344#include "tree.h"
     
    5354        assert(ops->evaluate);
    5455        assert(ops->destroy);
     56        if (bithenge_should_fail())
     57                return ENOMEM;
    5558        self->ops = ops;
    5659        self->refs = 1;
     
    304307int bithenge_in_node_expression(bithenge_expression_t **out)
    305308{
     309        if (bithenge_should_fail())
     310                return ENOMEM;
    306311        bithenge_expression_inc_ref(&in_node_expression);
    307312        *out = &in_node_expression;
Note: See TracChangeset for help on using the changeset viewer.