libamxo  4.3.4
Object Definition Language (ODL) parsing
test_issue_67.c File Reference
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <inttypes.h>
#include <limits.h>
#include <unistd.h>
#include <fcntl.h>
#include <cmocka.h>
#include <amxc/amxc.h>
#include <amxp/amxp.h>
#include <amxp/amxp_signal.h>
#include <amxd/amxd_dm.h>
#include <amxd/amxd_object.h>
#include <amxd/amxd_object_expression.h>
#include <amxd/amxd_parameter.h>
#include <amxo/amxo.h>
#include <amxo/amxo_mibs.h>
#include "test_issue_67.h"

Go to the source code of this file.

Macros

#define UNUSED   __attribute__((unused))
 

Functions

void test_missing_brackets_do_not_cause_seg_fault (__attribute__((unused)) void **state)
 

Macro Definition Documentation

◆ UNUSED

#define UNUSED   __attribute__((unused))

Definition at line 83 of file test_issue_67.c.

Function Documentation

◆ test_missing_brackets_do_not_cause_seg_fault()

void test_missing_brackets_do_not_cause_seg_fault ( __attribute__((unused)) void **  state)

Definition at line 85 of file test_issue_67.c.

85  {
86  amxd_dm_t dm;
87  amxo_parser_t parser;
88 
89  amxd_dm_init(&dm);
90  amxo_parser_init(&parser);
91 
92  assert_int_not_equal(amxo_parser_parse_file(&parser, "./issue_67.odl", amxd_dm_get_root(&dm)), 0);
93 
94  amxo_parser_clean(&parser);
95  amxd_dm_clean(&dm);
96 }
void amxo_parser_clean(amxo_parser_t *parser)
Cleans up the odl parser instance.
int amxo_parser_parse_file(amxo_parser_t *parser, const char *file_path, amxd_object_t *object)
Parses an odl file.
int amxo_parser_init(amxo_parser_t *parser)
Initializes a new odl parser instance.
The ODL parser structure.
Definition: amxo_types.h:245