source: mainline/uspace/lib/c/test/main.c@ 153dd3b

ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 153dd3b was 7d7f5e3, checked in by Jiri Svoboda <jiri@…>, 22 months ago

loc_server_register() should be callable more than once (implementation)

We create a new session for each loc_server_register() / loc_srv_t
object. Alternatively we could multiplex all to a single connection
and then demultiplex them in the server, but this seemed simpler
at the moment.

We add a test case to libc test suite.

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[2bff9860]1/*
[7d7f5e3]2 * Copyright (c) 2023 Jiri Svoboda
[2bff9860]3 * Copyright (c) 2014 Vojtech Horky
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *
10 * - Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * - Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * - The name of the author may not be used to endorse or promote products
16 * derived from this software without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */
29
30#include <stdio.h>
[134ac5d]31#include <pcut/pcut.h>
[2bff9860]32
[3f932a7e]33PCUT_INIT;
[2bff9860]34
[c24b0dcb]35PCUT_IMPORT(capa);
[32236e5]36PCUT_IMPORT(casting);
[7a6065c]37PCUT_IMPORT(circ_buf);
[88e7dc5]38PCUT_IMPORT(double_to_str);
[12dcd5f]39PCUT_IMPORT(fibril_timer);
[88e7dc5]40PCUT_IMPORT(getopt);
41PCUT_IMPORT(gsort);
42PCUT_IMPORT(ieee_double);
43PCUT_IMPORT(imath);
[9912f49]44PCUT_IMPORT(inttypes);
[7d7f5e3]45PCUT_IMPORT(loc);
[2498b95]46PCUT_IMPORT(mem);
[838ea8aa]47PCUT_IMPORT(odict);
[8ee106b]48PCUT_IMPORT(perf);
[9c75a99d]49PCUT_IMPORT(perm);
[f2460a50]50PCUT_IMPORT(qsort);
[ed18e14]51PCUT_IMPORT(scanf);
[2bff9860]52PCUT_IMPORT(sprintf);
[4e6a610]53PCUT_IMPORT(stdio);
[8338a81]54PCUT_IMPORT(stdlib);
[a18a8b9]55PCUT_IMPORT(str);
[99d3123]56PCUT_IMPORT(string);
[a4e78743]57PCUT_IMPORT(strtol);
[5e962ad]58PCUT_IMPORT(table);
[88e7dc5]59PCUT_IMPORT(uuid);
[2bff9860]60
[013e5d32]61PCUT_MAIN();
Note: See TracBrowser for help on using the repository browser.